r330855 - [CMake] Enable libc++ for Fuchsia toolchain on Darwin
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 25 11:30:55 PDT 2018
Author: phosek
Date: Wed Apr 25 11:30:55 2018
New Revision: 330855
URL: http://llvm.org/viewvc/llvm-project?rev=330855&view=rev
Log:
[CMake] Enable libc++ for Fuchsia toolchain on Darwin
This is necessary in order to get a working C++ compiler on Darwin
since Clang expects libc++ headers to be part of the toolchain.
Differential Revision: https://reviews.llvm.org/D46075
Modified:
cfe/trunk/cmake/caches/Fuchsia-stage2.cmake
Modified: cfe/trunk/cmake/caches/Fuchsia-stage2.cmake
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/Fuchsia-stage2.cmake?rev=330855&r1=330854&r2=330855&view=diff
==============================================================================
--- cfe/trunk/cmake/caches/Fuchsia-stage2.cmake (original)
+++ cfe/trunk/cmake/caches/Fuchsia-stage2.cmake Wed Apr 25 11:30:55 2018
@@ -38,16 +38,7 @@ endforeach()
set(LLVM_RUNTIME_TARGETS "default;x86_64-fuchsia;aarch64-fuchsia;x86_64-fuchsia-asan:x86_64-fuchsia;aarch64-fuchsia-asan:aarch64-fuchsia" CACHE STRING "")
# Set the default target runtimes options.
-if(APPLE)
- # Disable installing libc++, libc++abi or libunwind on Darwin, since Clang
- # driver doesn't know how to use libraries that are part of the toolchain.
- set(LIBUNWIND_INSTALL_HEADERS OFF CACHE BOOL "")
- set(LIBUNWIND_INSTALL_LIBRARY OFF CACHE BOOL "")
- set(LIBCXXABI_INSTALL_HEADERS OFF CACHE BOOL "")
- set(LIBCXXABI_INSTALL_LIBRARY OFF CACHE BOOL "")
- set(LIBCXX_INSTALL_HEADERS OFF CACHE BOOL "")
- set(LIBCXX_INSTALL_LIBRARY OFF CACHE BOOL "")
-else()
+if(NOT APPLE)
set(LIBUNWIND_ENABLE_SHARED OFF CACHE BOOL "")
set(LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "")
set(LIBUNWIND_INSTALL_LIBRARY OFF CACHE BOOL "")
More information about the cfe-commits
mailing list