From: Petr Hosek Date: Fri, 31 May 2019 01:16:43 +0000 (+0000) Subject: [CMake][Fuchsia] Use libc++ ABI v2 on Darwin as well X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f17828ac58f0964bef11bfd0766357a084156f15;p=clang [CMake][Fuchsia] Use libc++ ABI v2 on Darwin as well 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 --- diff --git a/cmake/caches/Fuchsia-stage2.cmake b/cmake/caches/Fuchsia-stage2.cmake index 4f024a7fb5..cedc69fa6f 100644 --- a/cmake/caches/Fuchsia-stage2.cmake +++ b/cmake/caches/Fuchsia-stage2.cmake @@ -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)