[clang] [llvm] [CMake] Add a linker test for -Bsymbolic-functions to AddLLVM (PR #79539)

Mateusz MikuĊ‚a via cfe-commits cfe-commits at lists.llvm.org
Tue May 13 12:18:45 PDT 2025


================
@@ -314,6 +308,11 @@ function(add_link_opts target_name)
     set_property(TARGET ${target_name} APPEND_STRING PROPERTY
                  LINK_FLAGS " -Wl,-brtl")
   endif()
+
+  if (NOT MINGW)
+    llvm_check_linker_flag(CXX "-Wl,-Bsymbolic-functions"
+                           LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS)
+  endif()
----------------
mati865 wrote:

This `if` is unnecessary thanks to this PR.

https://github.com/llvm/llvm-project/pull/79539


More information about the cfe-commits mailing list