Skip to content

Commit

Permalink
[flang/mlir] Fix "file too big" build error on CYGWIN.
Browse files Browse the repository at this point in the history
Attached patch fixes issues #63582 and #57718 when building my port to CYGWIN of llvm-project.
#63582
#57718

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D159404
  • Loading branch information
carlo-bramini authored and mstorsjo committed Sep 14, 2023
1 parent 9058762 commit e873280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/cmake/modules/HandleLLVMOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ if(MSVC)
# value (1 MB) which is not enough for us in tasks such as parsing recursive
# C++ templates in Clang.
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10000000")
elseif(MINGW) # FIXME: Also cygwin?
elseif(MINGW OR CYGWIN)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--stack,16777216")

# Pass -mbig-obj to mingw gas to avoid COFF 2**16 section limit.
Expand Down

0 comments on commit e873280

Please sign in to comment.