summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-05-10 22:14:23 +0000
committerAdrian Prantl <aprantl@apple.com>2017-05-10 22:14:23 +0000
commit4ca31391794e0fc9c11fb6baf25a49a4bb5b9794 (patch)
tree0bd32e34d72ec022ee777a01c7cce51dd4bca40c
parentf43726cd22b2f2539900b982a79d0186fc0a5543 (diff)
downloadbcm5719-llvm-4ca31391794e0fc9c11fb6baf25a49a4bb5b9794.tar.gz
bcm5719-llvm-4ca31391794e0fc9c11fb6baf25a49a4bb5b9794.zip
Partially revert r302685 and swith Apple-style full LTO builds to
-gline-tables-only. The memory consumption is apparently still too much for some of the green dragon builders. <rdar://problem/28672159> llvm-svn: 302740
-rw-r--r--clang/cmake/caches/Apple-stage2.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/cmake/caches/Apple-stage2.cmake b/clang/cmake/caches/Apple-stage2.cmake
index 73e647d22df..f07973dc0ab 100644
--- a/clang/cmake/caches/Apple-stage2.cmake
+++ b/clang/cmake/caches/Apple-stage2.cmake
@@ -29,6 +29,10 @@ set(LLVM_BUILD_TESTS ON CACHE BOOL "")
set(LLVM_ENABLE_LTO ON CACHE BOOL "")
set(CMAKE_C_FLAGS "-fno-stack-protector -fno-common -Wno-profile-instr-unprofiled" CACHE STRING "")
set(CMAKE_CXX_FLAGS "-fno-stack-protector -fno-common -Wno-profile-instr-unprofiled" CACHE STRING "")
+if(LLVM_ENABLE_LTO AND NOT LLVM_ENABLE_LTO STREQUAL "THIN")
+ set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -gline-tables-only -DNDEBUG" CACHE STRING "")
+ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -gline-tables-only -DNDEBUG" CACHE STRING "")
+endif()
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "")
set(LIBCXX_INSTALL_LIBRARY OFF CACHE BOOL "")
OpenPOWER on IntegriCloud