[all-commits] [llvm/llvm-project] 8b2fcc: [CompilerRT] Don't pass global compile test flags ...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Jul 28 09:26:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b2fcc42b895575d46dbd9252df566938cf68a69
      https://github.com/llvm/llvm-project/commit/8b2fcc42b895575d46dbd9252df566938cf68a69
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M compiler-rt/cmake/Modules/CompilerRTCompile.cmake

  Log Message:
  -----------
  [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




More information about the All-commits mailing list