summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 "")