(I originally sent this message last week, but only figured now that it
never reached the list because I used an erroneous address)

Hi,

So far, Windows targets looked like ${cpu}-pc-mingw32, and the default
compiler would be clang-cl, building for the MSVC-compatible Application
Binary Interface (ABI). One could switch to the clang compiler to build
for the MINGW ABI, which means that ironically, the build target didn't
reflect reality in the default case.

As of bug 1817372, two new target suffixes are allowed in Windows target
names, and the default has changed.

The suffixes are -windows-msvc and -windows-gnu (instead/in addition to
-mingw32), which, if you know the Rust compiler targets, will sound
familiar.

The default is now ${cpu}-pc-windows-msvc instead of ${cpu}-pc-mingw32,
which also means the default objdir name is now
obj-${cpu}-pc-windows-msvc instead of obj-${cpu}-pc-mingw32.

When using the ${cpu}-pc-windows-msvc target, the only supported
compiler is clang-cl, and when using the ${cpu}-pc-windows-gnu target,
the only supported compiler is clang, making things all clearer for the
build system, although the -windows-gnu builds probably don't work out
of the box yet.

For now, the ${cpu}-pc-mingw32 target form is kept, with the same
meaning as before, but will eventually be either removed, or made
synonymous to ${cpu}-pc-windows-gnu.

If you are building on Windows, you probably don't need to change
any configuration (although if you have some --host or --target around
with the -mingw32 form, you may want to remove those flags entirely).
You'll have to be mindful of the objdir name change.

If you are cross-compiling, you should change the --target from
-minwg32 to -windows-msvc.

Cheers,

Mike

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/20230223075440.hvjalmqbz34t4g3o%40glandium.org.

Reply via email to