]> granicus.if.org Git - clang/commitdiff
[CMake] Adding toolchain targets to PGO and Apple CMake caches
authorChris Bieneman <beanz@apple.com>
Wed, 17 Aug 2016 21:51:38 +0000 (21:51 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 17 Aug 2016 21:51:38 +0000 (21:51 +0000)
The Xcode toolchain targets are useful on OS X hosts because you can construct and install multiple toolchians that can be used seamlessly.

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

cmake/caches/Apple-stage2.cmake
cmake/caches/PGO-stage2-instrumented.cmake
cmake/caches/PGO.cmake

index 1d3343561e25140ca7c8466e0097614a167117fe..11c595c1530f87546e213dd16fefea28f87a3b28 100644 (file)
@@ -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 "")
 
index 37b319c961cfd8475c0341e9051321c1740cec24..858c07f562650965e2b881a81989f22000a916bb 100644 (file)
@@ -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
index bca9ba0dea360872da7f3324ff4e7eb39fc977d2..1f298fabeca1e049790d9b662ba8464a25bcd82a 100644 (file)
@@ -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