From: Paolo Bonzini Date: Thu, 13 Nov 2025 09:31:52 +0000 (+0100) Subject: rust: Meson now adds -Cdefault-linker-libraries X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e12d608b5990b1986190b85351de62551740e846;p=thirdparty%2Fqemu.git rust: Meson now adds -Cdefault-linker-libraries Signed-off-by: Paolo Bonzini --- diff --git a/meson.build b/meson.build index 02738c9765..e2de3832ac 100644 --- a/meson.build +++ b/meson.build @@ -136,13 +136,7 @@ if have_rust rustc_lint_args += ['-Dwarnings', '-Funknown_lints'] endif - # Apart from procedural macros, our Rust executables will often link - # with C code, so include all the libraries that C code needs. This - # is safe; https://github.com/rust-lang/rust/pull/54675 says that - # passing -nodefaultlibs to the linker "was more ideological to - # start with than anything". - add_project_arguments(rustc_lint_args + - ['--cfg', 'MESON', '-C', 'default-linker-libraries'], + add_project_arguments(rustc_lint_args + ['--cfg', 'MESON'], native: false, language: 'rust') add_project_arguments(rustc_lint_args + ['--cfg', 'MESON'], native: true, language: 'rust')