[PATCH] D37414: [CMake] Add bootstrap option `CLANG_BOOTSTRAP_USE_LIBCXX`
Leo Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 2 00:16:26 PDT 2017
aoli created this revision.
Herald added a subscriber: mgorny.
This option makes `clang-bootstrap-deps` depend on libcxx taret. It
allows stage2 build to link against libcxx libraries from stage1 build.
https://reviews.llvm.org/D37414
Files:
CMakeLists.txt
cmake/caches/Android.cmake
Index: cmake/caches/Android.cmake
===================================================================
--- cmake/caches/Android.cmake
+++ cmake/caches/Android.cmake
@@ -5,6 +5,7 @@
set(CLANG_ENABLE_ARCMT OFF CACHE BOOL "")
set(CLANG_ENABLE_STATIC_ANALYZER OFF CACHE BOOL "")
set(CLANG_VENDOR Android CACHE STRING "")
+set(CLANG_BOOTSTRAP_USE_LIBCXX ON CACHE BOOL "")
set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "")
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -593,6 +593,10 @@
add_dependencies(clang-bootstrap-deps compiler-rt)
endif()
+ if(CLANG_BOOTSTRAP_USE_LIBCXX)
+ add_dependencies(clang-bootstrap-deps cxx)
+ endif()
+
set(C_COMPILER "clang")
set(CXX_COMPILER "clang++")
if(WIN32)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37414.113647.patch
Type: text/x-patch
Size: 804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170902/260db823/attachment.bin>
More information about the llvm-commits
mailing list