commit | 69da2b06795ea985b169bfd6d21447a6ee237577 | [log] [tgz] |
---|---|---|
author | Hans Wennborg <hans@hanshq.net> | Tue Aug 20 07:41:14 2019 +0000 |
committer | Hans Wennborg <hans@hanshq.net> | Tue Aug 20 07:41:14 2019 +0000 |
tree | a654c77cda9a5a160429e170cb57495f2b39c612 | |
parent | e93ca062c6b861e6c967e94f5c399d7fa0cf2970 [diff] |
[compiler-rt][crt] Pass -fno-lto in check_cxx_section_exists Otherwise it doesn't work when building with -DLLVM_ENABLE_LTO=thin (We hit this in Chromium in https://bugs.chromium.org/p/chromium/issues/detail?id=966403) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@369336 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/crt/CMakeLists.txt b/lib/crt/CMakeLists.txt index 03a07f4..34c368f 100644 --- a/lib/crt/CMakeLists.txt +++ b/lib/crt/CMakeLists.txt
@@ -19,6 +19,7 @@ if(CMAKE_C_COMPILER_ID MATCHES Clang AND CMAKE_C_COMPILER_TARGET) list(APPEND try_compile_flags "-target ${CMAKE_C_COMPILER_TARGET}") endif() + append_list_if(COMPILER_RT_HAS_FNO_LTO_FLAG -fno-lto try_compile_flags) string(REPLACE ";" " " extra_flags "${try_compile_flags}")