diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-15 10:28:12 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-09-24 07:48:22 -0700 |
| commit | b91fede6d263286fa1e20d424f92d1e10668a8ed (patch) | |
| tree | a62a36bad4ed34bb81decd559b490920414ca715 /docs/markdown | |
| parent | 199e468e43cf69fb39733432e42899a2d984c198 (diff) | |
| download | meson-b91fede6d263286fa1e20d424f92d1e10668a8ed.tar.gz | |
compilers: clang: map -Db_vscrt to -fms-runtime-lib
The main complication here is that passing -fms-runtime-lib during compilation
results in a warning:
clang: error: argument unused during compilation: '-fms-runtime-lib=dll' [-Werror,-Wunused-command-line-argument]
(https://github.com/mesonbuild/meson/actions/runs/17727020048/job/50369771571).
So, for compilation expand the -D flags by hand, and only pass -fms-runtime-lib
when linking.
Fixes: #14571
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/markdown')
| -rw-r--r-- | docs/markdown/snippets/b_msvcrt_clang.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/markdown/snippets/b_msvcrt_clang.md b/docs/markdown/snippets/b_msvcrt_clang.md new file mode 100644 index 000000000..2a509bda6 --- /dev/null +++ b/docs/markdown/snippets/b_msvcrt_clang.md @@ -0,0 +1,4 @@ +## `-Db_msvcrt` on clang + +`-Db_msvcrt` will now link the appropriate runtime library, and set +the appropriate preprocessor symbols, also when the compiler is clang. |
