hanchenye-llvm-project/compiler-rt/cmake
Arthur Eubanks 8b2fcc42b8 [CompilerRT] Don't pass global compile test flags in non-standalone build
In a build with -DLLVM_ENABLE_LTO=Thin:

$ ninja TSanitizer-x86_64-Test-Nolibc
[1/1] Generating Sanitizer-x86_64-Test-Nolibc
FAILED: projects/compiler-rt/lib/sanitizer_common/tests/Sanitizer-x86_64-Test-Nolibc
sanitizer_nolibc_test_main.x86_64.o: file not recognized: file format not recognized

because -flto=thin is getting passed to the clang_compile step.

For non-standalone builds, global compilation flags shouldn't be passed to compiler-rt tests, only the flags the test specifies.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D84466
2020-07-28 09:26:14 -07:00
..
Modules [CompilerRT] Don't pass global compile test flags in non-standalone build 2020-07-28 09:26:14 -07:00
caches
base-config-ix.cmake Revert "[compiler-rt][Android] Stop using detect_target_arch" 2020-07-14 15:05:26 -07:00
builtin-config-ix.cmake [compiler-rt] Add support for arm64 macOS 2020-06-25 16:44:36 -07:00
config-ix.cmake [compiler-rt][cmake] Don't pass --version-script to Illumos ld 2020-07-28 13:21:36 +02:00