[clang] [CMake][Fuchsia] -fvisibility=hidden for baremetal runtimes (PR #98049)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 8 11:52:09 PDT 2024


================
@@ -321,7 +321,7 @@ foreach(target armv6m-unknown-eabi;armv7m-unknown-eabi;armv8m-unknown-eabi)
   set(RUNTIMES_${target}_CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "")
   set(RUNTIMES_${target}_CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY CACHE STRING "")
   foreach(lang C;CXX;ASM)
-    set(RUNTIMES_${target}_CMAKE_${lang}_FLAGS "--target=${target} -mthumb -Wno-atomic-alignment" CACHE STRING "")
+    set(RUNTIMES_${target}_CMAKE_${lang}_FLAGS "--target=${target} -mthumb -Wno-atomic-alignment -fvisibility=hidden" CACHE STRING "")
----------------
ilovepi wrote:

Does this need the TODO as well?

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


More information about the cfe-commits mailing list