Skip to content

Commit 67e50e1

Browse files
mati865jeremyd2019
authored andcommitted
[LLVM][Cygwin] Fix symbol visibility definition
1 parent 87f0227 commit 67e50e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-shlib/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if(LLVM_BUILD_LLVM_DYLIB)
6161
# Solaris ld does not accept global: *; so there is no way to version *all* global symbols
6262
set(LIB_NAMES -Wl,--version-script,${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map ${LIB_NAMES})
6363
endif()
64-
if (NOT MINGW AND NOT LLVM_LINKER_IS_SOLARISLD_ILLUMOS)
64+
if (NOT (MINGW OR CYGWIN) AND NOT LLVM_LINKER_IS_SOLARISLD_ILLUMOS)
6565
# Optimize function calls for default visibility definitions to avoid PLT and
6666
# reduce dynamic relocations.
6767
# Note: for -fno-pic default, the address of a function may be different from

0 commit comments

Comments
 (0)