summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-08-17 21:51:38 +0000
committerChris Bieneman <beanz@apple.com>2016-08-17 21:51:38 +0000
commit981618da53b719d338e4fc263dbdcd3a3e6759da (patch)
tree9b06fd9d69217fcb5d2a472c6783c3aae31a1a92
parente72774dd69f98b70603f9748e0d77f5197d97a09 (diff)
downloadbcm5719-llvm-981618da53b719d338e4fc263dbdcd3a3e6759da.tar.gz
bcm5719-llvm-981618da53b719d338e4fc263dbdcd3a3e6759da.zip
[CMake] Adding toolchain targets to PGO and Apple CMake caches
The Xcode toolchain targets are useful on OS X hosts because you can construct and install multiple toolchians that can be used seamlessly. llvm-svn: 278987
-rw-r--r--clang/cmake/caches/Apple-stage2.cmake2
-rw-r--r--clang/cmake/caches/PGO-stage2-instrumented.cmake1
-rw-r--r--clang/cmake/caches/PGO.cmake1
3 files changed, 4 insertions, 0 deletions
diff --git a/clang/cmake/caches/Apple-stage2.cmake b/clang/cmake/caches/Apple-stage2.cmake
index 1d3343561e2..11c595c1530 100644
--- a/clang/cmake/caches/Apple-stage2.cmake
+++ b/clang/cmake/caches/Apple-stage2.cmake
@@ -20,6 +20,8 @@ set(BUG_REPORT_URL "http://developer.apple.com/bugreporter/" CACHE STRING "")
set(LLVM_BUILD_EXTERNAL_COMPILER_RT ON CACHE BOOL "Build Compiler-RT with just-built clang")
set(COMPILER_RT_ENABLE_IOS ON CACHE BOOL "Build iOS Compiler-RT libraries")
+set(LLVM_CREATE_XCODE_TOOLCHAIN ON CACHE BOOL "Generate targets to create and install an Xcode compatable toolchain")
+
# Make unit tests (if present) part of the ALL target
set(LLVM_BUILD_TESTS ON CACHE BOOL "")
diff --git a/clang/cmake/caches/PGO-stage2-instrumented.cmake b/clang/cmake/caches/PGO-stage2-instrumented.cmake
index 37b319c961c..858c07f5626 100644
--- a/clang/cmake/caches/PGO-stage2-instrumented.cmake
+++ b/clang/cmake/caches/PGO-stage2-instrumented.cmake
@@ -2,6 +2,7 @@ set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
set(CLANG_BOOTSTRAP_TARGETS
distribution
install-distribution
+ install-distribution-toolchain
check-all
check-llvm
check-clang
diff --git a/clang/cmake/caches/PGO.cmake b/clang/cmake/caches/PGO.cmake
index bca9ba0dea3..1f298fabeca 100644
--- a/clang/cmake/caches/PGO.cmake
+++ b/clang/cmake/caches/PGO.cmake
@@ -9,6 +9,7 @@ set(CLANG_BOOTSTRAP_TARGETS
stage2
stage2-distribution
stage2-install-distribution
+ stage2-install-distribution-toolchain
stage2-check-all
stage2-check-llvm
stage2-check-clang
OpenPOWER on IntegriCloud