]> granicus.if.org Git - clang/commitdiff
[CMake][Fuchsia] Use libc++ ABI v2 on Darwin as well
authorPetr Hosek <phosek@chromium.org>
Fri, 31 May 2019 01:16:43 +0000 (01:16 +0000)
committerPetr Hosek <phosek@chromium.org>
Fri, 31 May 2019 01:16:43 +0000 (01:16 +0000)
Since we share headers between host and target builds, we need to use
the same version for both.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362181 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/caches/Fuchsia-stage2.cmake

index 4f024a7fb5106aa7453e14ecc12abcb13c20b17c..cedc69fa6f6e195a44bb32adaaef7f4da0936162 100644 (file)
@@ -49,6 +49,7 @@ if(APPLE)
   set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
   set(LIBCXX_ENABLE_SHARED OFF CACHE BOOL "")
   set(LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "")
+  set(LIBCXX_ABI_VERSION 2 CACHE STRING "")
 endif()
 
 foreach(target aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unknown-linux-gnu;x86_64-unknown-linux-gnu)