[CMake] Use internal_linkage rather than always_inline for libc++
authorPetr Hosek <phosek@chromium.org>
Sun, 23 Sep 2018 08:46:31 +0000 (08:46 +0000)
committerPetr Hosek <phosek@chromium.org>
Sun, 23 Sep 2018 08:46:31 +0000 (08:46 +0000)
This is a workaround for PR39053 which was uncovered by D50652 when
the default attribute has been changed from internal_linkage to
always_inline.

Differential Revision: https://reviews.llvm.org/D52402

llvm-svn: 342833

clang/cmake/caches/Fuchsia-stage2.cmake

index 28e1795..910cf2b 100644 (file)
@@ -109,6 +109,8 @@ if(FUCHSIA_SDK)
     set(RUNTIMES_${target}-fuchsia_LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
     set(RUNTIMES_${target}-fuchsia_LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "")
     set(RUNTIMES_${target}-fuchsia_LIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY OFF CACHE BOOL "")
+    # TODO: this is a workaround for PR39053 which was uncovered by D50652.
+    set(RUNTIMES_${target}-fuchsia_LIBCXX_HIDE_FROM_ABI_PER_TU_BY_DEFAULT ON CACHE BOOL "")
   endforeach()
 
   set(LLVM_RUNTIME_SANITIZERS "Address" CACHE STRING "")