Skip to content

Commit ce7e187

Browse files
kasper93eli-schwartz
authored andcommitted
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.
1 parent 7a43b6e commit ce7e187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/compilers/rust.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def _native_static_libs(self, work_dir: str, source_name: str) -> None:
170170
# are always part of C/C++ linkers. Rustc probably should not print
171171
# them, pkg-config for example never specify them.
172172
# FIXME: https://github.com/rust-lang/rust/issues/55120
173-
exclude = {'-lc', '-lgcc_s', '-lkernel32', '-ladvapi32'}
173+
exclude = {'-lc', '-lgcc_s', '-lkernel32', '-ladvapi32', '/defaultlib:msvcrt'}
174174
self.native_static_libs = [i for i in match.group(1).split() if i not in exclude]
175175

176176
def get_dependency_gen_args(self, outtarget: str, outfile: str) -> T.List[str]:

0 commit comments

Comments
 (0)