Browse Source

rust: Meson now adds -Cdefault-linker-libraries

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
pull/316/head
Paolo Bonzini 9 months ago
parent
commit
e12d608b59
  1. 8
      meson.build

8
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')

Loading…
Cancel
Save