]> granicus.if.org Git - clang/commitdiff
Partially revert r302685 and swith Apple-style full LTO builds to
authorAdrian Prantl <aprantl@apple.com>
Wed, 10 May 2017 22:14:23 +0000 (22:14 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 10 May 2017 22:14:23 +0000 (22:14 +0000)
-gline-tables-only. The memory consumption is apparently still too
much for some of the green dragon builders.

<rdar://problem/28672159>

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

cmake/caches/Apple-stage2.cmake

index 73e647d22dfbd8c6bfe5b7b2200575c82875ca1e..f07973dc0ab2261685c67eeeabdcd643bf0f0f23 100644 (file)
@@ -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 "")