Skip to content

Commit a5df1f1

Browse files
carlo-braminimahesh-attarde
authored andcommitted
[flang][CMake] CYGWIN: Fix undefined references at link time. (llvm#67105)
While building the source of flang on CYGWIN, the process suddenly stopped with lot of "Undefined reference" errors at link time. According to the statement that a shared library can't have undefined references on Windows, I applied the same fix to CYGWIN with this patch.
1 parent d70613b commit a5df1f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/test/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ set(FLANG_TEST_DEPENDS
6565
bbc
6666
FortranDecimal
6767
)
68+
6869
if (NOT FLANG_STANDALONE_BUILD)
6970
list(APPEND FLANG_TEST_DEPENDS
7071
llvm-config
@@ -79,7 +80,7 @@ if (NOT FLANG_STANDALONE_BUILD)
7980
)
8081
endif ()
8182

82-
if (LLVM_BUILD_EXAMPLES AND LLVM_ENABLE_PLUGINS AND NOT WIN32 AND NOT FLANG_STANDALONE_BUILD)
83+
if (LLVM_BUILD_EXAMPLES AND LLVM_ENABLE_PLUGINS AND NOT (WIN32 OR CYGWIN) AND NOT FLANG_STANDALONE_BUILD)
8384
list(APPEND FLANG_TEST_DEPENDS Bye)
8485
endif()
8586

0 commit comments

Comments
 (0)