mstorsjo added a comment.
In https://reviews.llvm.org/D37530#862644, @rnk wrote:
> What do you think of letting people spell this as `-lmsvcrt120`? We could
> forward those options and suppress our implicit addition of `-lmsvcrt` if we
> see `-lmsvcr*` anywhere.
That might work and would prob
rnk added a comment.
What do you think of letting people spell this as `-lmsvcrt120`? We could
forward those options and suppress our implicit addition of `-lmsvcrt` if we
see `-lmsvcr*` anywhere.
Comment at: lib/Driver/ToolChains/MinGW.cpp:161
if (TC.getArch() == llvm
mstorsjo created this revision.
This allows linking to e.g. msvcr120.dll or ucrtbase.dll instead of the
unversioned (and officially unsupported) msvcrt.dll. In GCC setups, this can be
overridden by using custom spec files, but this isn't supported in clang.
This is just an initial attempt at im