Skip to content

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
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.
jeremyd2019 added a commit to jeremyd2019/llvm-project that referenced this pull request May 14, 2025
GNU ld seems to ignore this option, but LLD treats the presence of this
unknown option as an error.
jeremyd2019 added a commit to jeremyd2019/llvm-project that referenced this pull request May 15, 2025
GNU ld seems to ignore this option, but LLD treats the presence of this
unknown option as an error.
jeremyd2019 added a commit to jeremyd2019/llvm-project that referenced this pull request Aug 9, 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