[vlc-devel] [PATCH] package/win32: build.sh: Force Win7 and MSVCRT when not using UCRT
Martin Storsjö
martin at martin.st
Tue Jun 2 12:00:12 CEST 2020
On Tue, 2 Jun 2020, Steve Lhomme wrote:
> That's the minimum we support in VLC 4.0.
>
> The CRT version to set for UCRT is 0xE00.
To select the UCRT, it's enough to just define _URT - you can do either
that or define __MSVCRT_VERSION__=0xE00, but you don't do both.
Switching between msvcrt versions like this, on top of one single
toolchain, works as long as you don't rely on other prebuilt libraries
that depend on CRT specific details. In particular, the prebuilt libc++ is
closely tied to the CRT used, so I'm afraid this approach doesn't work
reliably for C++ code - unless you plan on building that as part of the
VLC build as well.
// Martin
More information about the vlc-devel
mailing list