-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[Clang][Cygwin] don't use -Bsymbolic-functions #138217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Clang][Cygwin] don't use -Bsymbolic-functions #138217
Conversation
GNU ld seems to ignore this option, but LLD treats the presence of this unknown option as an error.
@llvm/pr-subscribers-clang Author: None (jeremyd2019) ChangesGNU ld seems to ignore this option, but LLD treats the presence of this unknown option as an error. Full diff: https://github.com/llvm/llvm-project/pull/138217.diff 1 Files Affected:
diff --git a/clang/tools/clang-shlib/CMakeLists.txt b/clang/tools/clang-shlib/CMakeLists.txt
index 31484ec49c773..317964de4fb17 100644
--- a/clang/tools/clang-shlib/CMakeLists.txt
+++ b/clang/tools/clang-shlib/CMakeLists.txt
@@ -57,7 +57,7 @@ endif()
# Optimize function calls for default visibility definitions to avoid PLT and
# reduce dynamic relocations.
-if (NOT APPLE AND NOT MINGW AND NOT LLVM_LINKER_IS_SOLARISLD_ILLUMOS)
+if (NOT APPLE AND NOT MINGW AND NOT CYGWIN AND NOT LLVM_LINKER_IS_SOLARISLD_ILLUMOS)
target_link_options(clang-cpp PRIVATE LINKER:-Bsymbolic-functions)
endif()
if (MINGW OR CYGWIN)
|
@mstorsjo I was going through my patches and found a couple tiny ones that I hadn't submitted yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
GNU ld seems to ignore this option, but LLD treats the presence of this unknown option as an error.
GNU ld seems to ignore this option, but LLD treats the presence of this unknown option as an error.
GNU ld seems to ignore this option, but LLD treats the presence of this unknown option as an error.
GNU ld seems to ignore this option, but LLD treats the presence of this unknown option as an error.
GNU ld seems to ignore this option, but LLD treats the presence of this unknown option as an error.
GNU ld seems to ignore this option, but LLD treats the presence of this unknown option as an error.