This enables "--rtlib compiler-rt" option under MSVC environment.
Related compiler-rt patch:
http://reviews.llvm.org/D17452
Differential D17453
[Driver] Enable --rtlib option for MSVC target roman.shirokiy on Feb 19 2016, 8:57 AM. Authored by
Details This enables "--rtlib compiler-rt" option under MSVC environment. Related compiler-rt patch:
Diff Detail
Event TimelineComment Actions For now every native Windows installation of Clang contains small compiler-rt builtins lib (rL261432: [CMake] Add partial support for MSVC in compiler-rt builtins), but there is no specific interface to make use of this lib on Windows. This patch is ought to provide command line option (existing one) for linking compiler-rt builtins lib on user demand. Comment Actions Hi, The error is very sensible, but I'm not sure why you're adding compiler-rt in the second change. Why is that necessary, and where are the tests for it. Thanks! Comment Actions Hello! Thanks for the feedback! MSVC got its own runtime lib, so the function "AddRunTimeLibs" is not used anywhere in "visualstudio::Linker::Constructjob" i.e. "--rtlib" option is currently unused in MSVC environment (there is always a warning: argument unused during compilation'). if (!Args.hasArg(options::OPT_nostdlib)) { AddRunTimeLibs(TC, TC.getDriver(), CmdArgs, Args); } This change is necessary to actually handle "--rtlib" on MSVC, but I totally agree that test for "-nostdlib --rtlib=compiler-rt" case is missed. Comment Actions lgtm
|