[PATCH] D52538: [MinGW] Allow using ASan

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 26 02:23:42 PDT 2018


mstorsjo created this revision.
mstorsjo added a reviewer: rnk.

Linking to ASan for MinGW is similar to MSVC, but MinGW always links the CRT 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.


Repository:
  rC Clang

https://reviews.llvm.org/D52538

Files:
  lib/Driver/ToolChain.cpp
  lib/Driver/ToolChains/MinGW.cpp
  lib/Driver/ToolChains/MinGW.h
  test/Driver/mingw-sanitizers.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52538.167085.patch
Type: text/x-patch
Size: 4876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180926/5ce8dcad/attachment-0001.bin>


More information about the cfe-commits mailing list