[PATCH] D7642: Introduce the idea of a minimum libc version

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 13 19:06:03 PDT 2015


We could support that by allowing the MSVC version in the triple to be
different from the -fms-compatibility-version on the command line. Today,
this might even with with --target.

That said, I don't imagine many people are doing this. Microsoft makes it
hard for you to do this, and lots of code assumes that the _MSC_VER macro
correlates with the CRT version.

On Thu, Aug 13, 2015 at 6:49 PM, Saleem Abdulrasool <compnerd at compnerd.org>
wrote:

> compnerd added a comment.
>
> AIUI, ucrt is absolutely relevant since msvcrt itself has been split out
> into the ucrt.  msvcrt is the "shared" common bits, while the ucrt is more
> "platform" specific bits.
>
> But really, the point is: supporting an older version with a newer
> compiler is what doing this the way I suggest enables.  You can use a newer
> compiler but still allow the generated binary to target an alternative
> environment.
>
>
> Repository:
>   rL LLVM
>
> http://reviews.llvm.org/D7642
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150813/98da33d7/attachment.html>


More information about the cfe-commits mailing list