Skip to content

Commit 74d921c

Browse files
authored
[Clang][Cygwin] don't use -Bsymbolic-functions (llvm#138217)
GNU ld seems to ignore this option, but LLD treats the presence of this unknown option as an error.
1 parent 497fbd0 commit 74d921c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-shlib/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ endif()
5757

5858
# Optimize function calls for default visibility definitions to avoid PLT and
5959
# reduce dynamic relocations.
60-
if (NOT APPLE AND NOT MINGW AND NOT LLVM_LINKER_IS_SOLARISLD_ILLUMOS)
60+
if (NOT APPLE AND NOT MINGW AND NOT CYGWIN AND NOT LLVM_LINKER_IS_SOLARISLD_ILLUMOS)
6161
target_link_options(clang-cpp PRIVATE LINKER:-Bsymbolic-functions)
6262
endif()
6363
if (MINGW OR CYGWIN)

0 commit comments

Comments
 (0)