HomePhabricator

[MinGW] Allow using ASan

Description

[MinGW] Allow using ASan

Linking to ASan for MinGW is similar to MSVC, but MinGW always links
the MSVCRT dynamically, so there is only one of the MSVC cases to
consider.

When linking to a shared compiler runtime library on MinGW, the suffix
of the import library is .dll.a.

The existing case of .dll as suffix for windows in general doesn't
seem correct (since this is used for linking). As long as callers never
actually set the Shared flag, the default static suffix of .lib also
worked fine for import libraries as well.

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

Details

Committed
mstorsjoOct 1 2018, 1:53 PM
Differential Revision
D52538: [MinGW] Allow using ASan
Parents
rL343536: [clang-query] Test non-code-completion on single letter shortcuts
Branches
Unknown
Tags
Unknown