[PATCH] D62315: [compiler-rt][crt] Pass -fno-lto in check_cxx_section_exists

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 08:33:33 PDT 2019


phosek added inline comments.


================
Comment at: compiler-rt/lib/crt/CMakeLists.txt:22
   endif()
+  append_list_if(COMPILER_RT_HAS_FNO_LTO_FLAG -fno-lto try_compile_flags)
 
----------------
I believe this should be done on line 79 as `append_list_if(COMPILER_RT_HAS_FNO_LTO_FLAG -fno-lto CRT_CFLAGS)`, `try_compile_flags` is only used to test whether the compiler supports `.init/.fini` section but doesn't change flags used to compile `crtbegin.o`/`crtend.o`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62315/new/

https://reviews.llvm.org/D62315





More information about the llvm-commits mailing list