diff options
| author | Kacper Michajłow <kasper93@gmail.com> | 2025-03-17 00:23:48 +0100 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-04-16 13:02:28 -0400 |
| commit | ce7e1876303071672b5e4b3f1182668bb43d68bd (patch) | |
| tree | f50423cb77a399e56f7b1d560ae1abbe62fa8273 /mesonbuild/compilers | |
| parent | 7a43b6e318d7a35f0ce250e80a9a04b6b2983f05 (diff) | |
| download | meson-ce7e1876303071672b5e4b3f1182668bb43d68bd.tar.gz | |
compilers/rust: remove CRT selection from native_static_libs args
This will be handled by target binary link. And if it's not compatible
with what Rust uses, it wouldn't work anyway.
Diffstat (limited to 'mesonbuild/compilers')
| -rw-r--r-- | mesonbuild/compilers/rust.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py index 3e9c016f6..d0d2e69ac 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -170,7 +170,7 @@ class RustCompiler(Compiler): # are always part of C/C++ linkers. Rustc probably should not print # them, pkg-config for example never specify them. # FIXME: https://github.com/rust-lang/rust/issues/55120 - exclude = {'-lc', '-lgcc_s', '-lkernel32', '-ladvapi32'} + exclude = {'-lc', '-lgcc_s', '-lkernel32', '-ladvapi32', '/defaultlib:msvcrt'} self.native_static_libs = [i for i in match.group(1).split() if i not in exclude] def get_dependency_gen_args(self, outtarget: str, outfile: str) -> T.List[str]: |
