diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-05-10 22:14:23 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-05-10 22:14:23 +0000 |
commit | 53597571d47b5c16e7914a3763f185ce5dd7b84a (patch) | |
tree | c9484101a6d5fe82875e156e887ec1e1b788b6b9 /clang/cmake | |
parent | eff53d4dea04ce4f1339982f8c1e1af958d31dad (diff) |
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>
Diffstat (limited to 'clang/cmake')
-rw-r--r-- | clang/cmake/caches/Apple-stage2.cmake | 4 |
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 "") |