[compiler-rt] r369336 - [compiler-rt][crt] Pass -fno-lto in check_cxx_section_exists
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 00:41:14 PDT 2019
Author: hans
Date: Tue Aug 20 00:41:14 2019
New Revision: 369336
URL: http://llvm.org/viewvc/llvm-project?rev=369336&view=rev
Log:
[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)
Modified:
compiler-rt/trunk/lib/crt/CMakeLists.txt
Modified: compiler-rt/trunk/lib/crt/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/crt/CMakeLists.txt?rev=369336&r1=369335&r2=369336&view=diff
==============================================================================
--- compiler-rt/trunk/lib/crt/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/crt/CMakeLists.txt Tue Aug 20 00:41:14 2019
@@ -19,6 +19,7 @@ function(check_cxx_section_exists sectio
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}")
More information about the llvm-commits
mailing list