> The big problem I see on Windows is unfortunately not the C++ standard
library, but the C standard library. MinGW defaults to crtdll, the one from
MSVC 6, which is not C99-compliant (MSVC 6 is from 1998 after all). A
better
alternative exists in the form of the Universal CRT, but that only comes by
default with Windows 10, so we'd need to drop support for 8.1 -- have we
done
that? -- and recompile GCC and/or LLVM so they ask the linker to link to
ucrt.

https://github.com/mstorsjo/llvm-mingw can be made to target ucrt; it even
has
releases: https://github.com/mstorsjo/llvm-mingw/releases/tag/20201020

As a data point, I've been using this toolchain for my own stuff for a
couple years now
and it works really well, though I only exercise
qtbase/qtdeclarative/couple of smaller libs.

All the best,
Jean-Michaël


On Fri, Nov 20, 2020 at 5:09 PM Thiago Macieira <thiago.macie...@intel.com>
wrote:

> On Friday, 20 November 2020 00:09:46 PST Oliver Wolff wrote:
> > The question is not about having one more supported Windows
> > configuration. We do not have the resources to add more and more
> > configurations to support, so it's more a "replace mingw for Windows
> > with something else" situation. As there seems to be a need for an open
> > alternative, it looks like we cannot/should not go the clang-cl way, but
> > clang-mingw if we replace mingw with a clang toolchain.
>
> That is not an option. We must have one MinGW configuration.
>
> We can choose which compiler and which version thereof, especially if the
> official MinGW comes with an old GCC. If we think Clang + libcompiler-rt +
> libc++ is a better solution for Windows, then we should explore it and
> even
> make it the default. But unless we do it RIGHT NOW, we will need an
> overlap
> period with a libstdc++ MinGW, due to ABI break.
>
> The big problem I see on Windows is unfortunately not the C++ standard
> library, but the C standard library. MinGW defaults to crtdll, the one
> from
> MSVC 6, which is not C99-compliant (MSVC 6 is from 1998 after all). A
> better
> alternative exists in the form of the Universal CRT, but that only comes
> by
> default with Windows 10, so we'd need to drop support for 8.1 -- have we
> done
> that? -- and recompile GCC and/or LLVM so they ask the linker to link to
> ucrt.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel DPG Cloud Engineering
>
>
>
> _______________________________________________
> Development mailing list
> Development@qt-project.org
> https://lists.qt-project.org/listinfo/development
>
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to