summaryrefslogtreecommitdiff
path: root/cmake/caches/Apple.cmake
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-02-19 22:59:18 +0000
committerChris Bieneman <beanz@apple.com>2016-02-19 22:59:18 +0000
commit907eb66f08e75ab673775e53f184cb9174619668 (patch)
treef5e30d99b0e4645b31cfaabe5243b411e8383f0b /cmake/caches/Apple.cmake
parent70917b74e4f495d3b98789aae9df1025ff13c9c8 (diff)
[CMake] Adding a CMake cache file that matches Apple's build configs
This should have no impact on anyone, but we're going to use it from GreenDragon to make our builders match what we ship. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261377 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/caches/Apple.cmake')
-rw-r--r--cmake/caches/Apple.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/caches/Apple.cmake b/cmake/caches/Apple.cmake
new file mode 100644
index 000000000..4a582fa1d
--- /dev/null
+++ b/cmake/caches/Apple.cmake
@@ -0,0 +1,12 @@
+# This file sets up a CMakeCache for Apple-style builds of compiler-rt.
+# This configuration matches Apple uses when shipping Xcode releases.
+
+set(COMPILER_RT_INCLUDE_TESTS OFF CACHE BOOL "")
+set(COMPILER_RT_HAS_SAFESTACK OFF CACHE BOOL "")
+set(COMPILER_RT_EXTERNALIZE_DEBUGINFO ON CACHE BOOL "")
+set(CMAKE_MACOSX_RPATH ON CACHE BOOL "")
+
+set(CMAKE_C_FLAGS_RELEASE "-O3 -gline-tables-only" CACHE STRING "")
+set(CMAKE_CXX_FLAGS_RELEASE "-O3 -gline-tables-only" CACHE STRING "")
+set(CMAKE_ASM_FLAGS_RELEASE "-O3 -gline-tables-only" CACHE STRING "")
+set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "")