HomePhabricator

[Driver] Accept -fno-lto in clang-cl

Authored by aeubanks on Aug 4 2020, 2:34 PM.

Description

[Driver] Accept -fno-lto in clang-cl

Some compiler-rt tests check for the presence of the compiler accepting
-fno-lto to add that flag. Otherwise some tests don't link due to
-flto mismatch between compiling and linking.

$ cmake ... -DLLVM_ENABLE_LTO=Thin ...
$ ninja projects/compiler-rt/lib/sanitizer_common/tests/Sanitizer-x86_64-Test.exe
previously failed, now links.

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D85252

Details

Committed
aeubanksAug 5 2020, 12:24 PM
Reviewer
hans
Differential Revision
D85252: [Driver] Accept -fno-lto in clang-cl
Parents
rG83eaf5d55db3: AMDGPU: Eliminate BUFFER_ATOMIC_PK_ADD_F16 node
Branches
Unknown
Tags
Unknown