[libcxx-commits] [libcxxabi] [libcxxabi] Always link against libzircon for Fuchsia targets (PR #115910)
Petr Hosek via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 15 00:30:38 PST 2024
================
@@ -75,6 +75,10 @@ if (NOT APPLE) # On Apple platforms, we always use -nostdlib++ so we don't need
add_library_flags_if(LIBCXXABI_HAS_C_LIB c)
endif()
+if (FUCHSIA)
+ add_link_flags("-Wl,--push-state,--as-needed,-lzircon,--pop-state")
----------------
petrhosek wrote:
I'd leave a `TODO` comment to use https://cmake.org/cmake/help/latest/variable/CMAKE_LINK_LIBRARY_USING_FEATURE.html once LLVM requires CMake at least 3.24.
https://github.com/llvm/llvm-project/pull/115910
More information about the libcxx-commits
mailing list