[clang] [llvm] [CMake] Add a linker test for -Bsymbolic-functions to AddLLVM (PR #79539)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed May 14 23:38:54 PDT 2025
================
@@ -355,6 +349,9 @@ function(add_link_opts target_name)
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,-brtl")
endif()
+
+ check_linker_flag(CXX "-Wl,-Bsymbolic-functions"
----------------
MaskRay wrote:
Add a comment what targets may need the -Wl,-Bsymbolic-functions check?
While configure is right, llvm cmake is so complex and so slow that many contributors want to optimize the number of compile/linke checks. I would still hope that we only do this on targets that actually need it.
https://github.com/llvm/llvm-project/pull/79539
More information about the cfe-commits
mailing list