]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
rust: Meson now adds -Cdefault-linker-libraries
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 13 Nov 2025 09:31:52 +0000 (10:31 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 27 Dec 2025 09:11:11 +0000 (10:11 +0100)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
meson.build

index 02738c9765feecc1b3d5acbdae5e30eb3ec3cc2f..e2de3832ac30d878ac982d10352e19451df9f6b2 100644 (file)
@@ -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')