Skip to content

Commit e873280

Browse files
carlo-braminimstorsjo
authored andcommitted
[flang/mlir] Fix "file too big" build error on CYGWIN.
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
1 parent 9058762 commit e873280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/modules/HandleLLVMOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ if(MSVC)
458458
# value (1 MB) which is not enough for us in tasks such as parsing recursive
459459
# C++ templates in Clang.
460460
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10000000")
461-
elseif(MINGW) # FIXME: Also cygwin?
461+
elseif(MINGW OR CYGWIN)
462462
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--stack,16777216")
463463

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

0 commit comments

Comments
 (0)