[Driver] Accept -fno-lto in clang-cl
authorArthur Eubanks <aeubanks@google.com>
Tue, 4 Aug 2020 21:34:51 +0000 (14:34 -0700)
committerArthur Eubanks <aeubanks@google.com>
Wed, 5 Aug 2020 19:24:10 +0000 (12:24 -0700)
commit8dc43852e4a8a5c6680d52aa6e73a75aef5a5954
treee31c39955074ee0d2a1c2991b29b22da110ff624
parent83eaf5d55db34b380c33aff05a1790c95a8f06a4
[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
clang/include/clang/Driver/Options.td
clang/test/Driver/cl-options.c