[MinGW] Treat any -lucrt* as replacing -lmsvcrt
authorMartin Storsjo <martin@martin.st>
Tue, 10 Jul 2018 10:46:45 +0000 (10:46 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 10 Jul 2018 10:46:45 +0000 (10:46 +0000)
commit995e596168551b879f736004e8aa40a6e09b915e
tree81041b2a7a0aea356559806902218a96db67efb5
parent8263975c3294a62864cad99dc9d474785f074256
[MinGW] Treat any -lucrt* as replacing -lmsvcrt

Since SVN r314138, we check if the user has specified any particular
alternative msvcrt/ucrt version, and skip the default -lmsvcrt
in those cases.

In addition to the existing names checked, we should also treat
a plain -lucrt in the same way, mingw-w64 has now added a separate
import library named libucrt.a, in addition to libucrtbase.a.

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

llvm-svn: 336654
clang/lib/Driver/ToolChains/MinGW.cpp
clang/test/Driver/mingw-msvcrt.c