Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
May 3, 2025

Conversation

jeremyd2019
Copy link
Contributor

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.
@llvmbot llvmbot added the clang Clang issues not falling into any other category label May 1, 2025
@llvmbot
Copy link
Member

llvmbot commented May 1, 2025

@llvm/pr-subscribers-clang

Author: None (jeremyd2019)

Changes

GNU 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:

  • (modified) clang/tools/clang-shlib/CMakeLists.txt (+1-1)
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)

@jeremyd2019
Copy link
Contributor Author

@mstorsjo I was going through my patches and found a couple tiny ones that I hadn't submitted yet

Copy link
Member

@mstorsjo mstorsjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mstorsjo mstorsjo merged commit 74d921c into llvm:main May 3, 2025
13 checks passed
@jeremyd2019 jeremyd2019 deleted the clang-dont-use-bsymbolic-functions branch May 3, 2025 22:34
jeremyd2019 added a commit to jeremyd2019/llvm-project that referenced this pull request May 3, 2025
GNU ld seems to ignore this option, but LLD treats the presence of this
unknown option as an error.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
GNU ld seems to ignore this option, but LLD treats the presence of this
unknown option as an error.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
GNU ld seems to ignore this option, but LLD treats the presence of this
unknown option as an error.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
GNU ld seems to ignore this option, but LLD treats the presence of this
unknown option as an error.
GeorgeARM pushed a commit to GeorgeARM/llvm-project that referenced this pull request May 7, 2025
GNU ld seems to ignore this option, but LLD treats the presence of this
unknown option as an error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants