aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2023-08-27 08:45:04 -0400
committerEli Schwartz <eschwartz93@gmail.com>2023-08-27 10:50:43 -0400
commit237b4c0f4181ffb947f311f612dad05fd8b6a7b4 (patch)
treefc4cccf1c95696b8043b62b56f104a34d85d7413 /docs
parente3a71a7b58ac559f8669ca6fa95617a537b47f98 (diff)
downloadmeson-237b4c0f4181ffb947f311f612dad05fd8b6a7b4.zip
meson-237b4c0f4181ffb947f311f612dad05fd8b6a7b4.tar.gz
meson-237b4c0f4181ffb947f311f612dad05fd8b6a7b4.tar.bz2
FAQ: MinGW UCRT are compatible with MSVC and also use libfoo.a
Prior to Windows 10, libfoo.a were usually not usable with MSVC. This is not true any more since Autotools projects built with UCRT produce libfoo.a that are compatible with MSVC. This is another reason for using that naming convention in Meson.
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/FAQ.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/markdown/FAQ.md b/docs/markdown/FAQ.md
index 8bcea20..ffc9e17 100644
--- a/docs/markdown/FAQ.md
+++ b/docs/markdown/FAQ.md
@@ -405,6 +405,9 @@ advantages:
not care what the extension is](https://docs.microsoft.com/en-us/cpp/build/reference/link-input-files?view=vs-2019),
so specifying `libfoo.a` instead of `foo.lib` does not change the workflow,
and is an improvement since it's less ambiguous.
+1. Projects built with the MinGW compiler are fully compatible with
+ MSVC as long as they use the same CRT (e.g. UCRT with MSYS2).
+ These projects also name their static libraries `libfoo.a`.
If, for some reason, you really need your project to output static
libraries of the form `foo.lib` when building with MSVC, you can set