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