[flang-commits] [flang] d50a4f6 - [flang][CMake] CYGWIN: Fix undefined references at link time. (#67105)
via flang-commits
flang-commits at lists.llvm.org
Sat Jul 26 11:45:10 PDT 2025
Author: Carlo Bramini
Date: 2025-07-26T11:45:06-07:00
New Revision: d50a4f6784d5ed6096e5c35e965c68c4767e4757
URL: https://github.com/llvm/llvm-project/commit/d50a4f6784d5ed6096e5c35e965c68c4767e4757
DIFF: https://github.com/llvm/llvm-project/commit/d50a4f6784d5ed6096e5c35e965c68c4767e4757.diff
LOG: [flang][CMake] CYGWIN: Fix undefined references at link time. (#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.
Added:
Modified:
flang/test/CMakeLists.txt
Removed:
################################################################################
diff --git a/flang/test/CMakeLists.txt b/flang/test/CMakeLists.txt
index 8520bec646971..40f4a2e48b665 100644
--- a/flang/test/CMakeLists.txt
+++ b/flang/test/CMakeLists.txt
@@ -65,6 +65,7 @@ set(FLANG_TEST_DEPENDS
bbc
FortranDecimal
)
+
if (NOT FLANG_STANDALONE_BUILD)
list(APPEND FLANG_TEST_DEPENDS
llvm-config
@@ -79,7 +80,7 @@ if (NOT FLANG_STANDALONE_BUILD)
)
endif ()
-if (LLVM_BUILD_EXAMPLES AND LLVM_ENABLE_PLUGINS AND NOT WIN32 AND NOT FLANG_STANDALONE_BUILD)
+if (LLVM_BUILD_EXAMPLES AND LLVM_ENABLE_PLUGINS AND NOT (WIN32 OR CYGWIN) AND NOT FLANG_STANDALONE_BUILD)
list(APPEND FLANG_TEST_DEPENDS Bye)
endif()
More information about the flang-commits
mailing list