[PATCH] D31218: [compiler-rt] build compiler-rt runtimes without LTO

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 15:45:42 PDT 2017


davidxl added a comment.

Even the system linker supports lto, there might be issues with bit code version mismatches etc. In general it is good idea to not build compiler rt with lto. It is a different story if we want to support cross module inlining of some compiler-rt functions in the future. For now it is fine, but with a brief comment there.

For the same reason, profile rt should not be built with -fprofile-generate or -fprofile-instr-generate, but we did not filter those out -- perhaps a different patch.


https://reviews.llvm.org/D31218





More information about the llvm-commits mailing list