mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Silence -Wcomment warnings in cxx compiler runs
This is one of the few warnings we disable due to false positives. Let's also disable it in the preprocessing steps needed for the Rust build. Other warnings we ignore are -Wno-address -Wunused-local-typedefs and -Wunused-macros. I didn't add them here because I don't expect that they will be triggered by the headers we give to cxx.
This commit is contained in:
parent
0410bacdf6
commit
d0bda9893b
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,7 @@ fn main() -> miette::Result<()> {
|
||||||
.include(&fish_src_dir)
|
.include(&fish_src_dir)
|
||||||
.include(&fish_build_dir) // For config.h
|
.include(&fish_build_dir) // For config.h
|
||||||
.include(&cxx_include_dir) // For cxx.h
|
.include(&cxx_include_dir) // For cxx.h
|
||||||
|
.flag("-Wno-comment")
|
||||||
.compile("fish-rust");
|
.compile("fish-rust");
|
||||||
|
|
||||||
// Emit autocxx junk.
|
// Emit autocxx junk.
|
||||||
|
@ -50,6 +51,7 @@ fn main() -> miette::Result<()> {
|
||||||
.custom_gendir(autocxx_gen_dir.into())
|
.custom_gendir(autocxx_gen_dir.into())
|
||||||
.build()?;
|
.build()?;
|
||||||
b.flag_if_supported("-std=c++11")
|
b.flag_if_supported("-std=c++11")
|
||||||
|
.flag("-Wno-comment")
|
||||||
.compile("fish-rust-autocxx");
|
.compile("fish-rust-autocxx");
|
||||||
for file in source_files {
|
for file in source_files {
|
||||||
println!("cargo:rerun-if-changed={file}");
|
println!("cargo:rerun-if-changed={file}");
|
||||||
|
|
Loading…
Reference in a new issue