aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlvin Wong <alvin@alvinhc.com>2023-04-23 23:58:24 +0800
committerAlvin Wong <alvin@alvinhc.com>2023-04-24 22:06:34 +0800
commit8fa0cfeb61a12ad5ca7830a8228155de32aa7ab2 (patch)
tree26113bf1ffdafe583ca284d09734e84258be2168 /clang/lib/Frontend/CompilerInvocation.cpp
parent9b15e9840f5073aa38939fbef1cb0c64dcc5f02f (diff)
downloadllvm-8fa0cfeb61a12ad5ca7830a8228155de32aa7ab2.zip
llvm-8fa0cfeb61a12ad5ca7830a8228155de32aa7ab2.tar.gz
llvm-8fa0cfeb61a12ad5ca7830a8228155de32aa7ab2.tar.bz2
[LLD][COFF] Add /inferasanlibs to lld-link as ignored flag
MSVC link.exe added this flag and MS STL started using this flag in .drectve [1] when compiling with Clang with asan enabled, as reported on https://github.com/llvm/llvm-project/issues/56300. This causes issues with lld-link because it rejects any unknown flags in .drective sections. As dc07867dc9991c982bd3441da19d6fcc16ea54d6 noted that, when using Clang as the driver it explicitly passes the proper asan libraries. Therefore it should be acceptable to ignore this flag in lld-link to at least unbreak building with clang-cl and linking with lld-link. [1]: https://github.com/microsoft/STL/blob/faaf094ee16bcbfb2c8d612fdb9334bcdef2fd0a/stl/inc/__msvc_sanitizer_annotate_container.hpp#L35 Differential Revision: https://reviews.llvm.org/D149023
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions