mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 21:21:15 -03: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:
@@ -41,6 +41,7 @@ fn main() -> miette::Result<()> {
|
||||
.include(&fish_src_dir)
|
||||
.include(&fish_build_dir) // For config.h
|
||||
.include(&cxx_include_dir) // For cxx.h
|
||||
.flag("-Wno-comment")
|
||||
.compile("fish-rust");
|
||||
|
||||
// Emit autocxx junk.
|
||||
@@ -50,6 +51,7 @@ fn main() -> miette::Result<()> {
|
||||
.custom_gendir(autocxx_gen_dir.into())
|
||||
.build()?;
|
||||
b.flag_if_supported("-std=c++11")
|
||||
.flag("-Wno-comment")
|
||||
.compile("fish-rust-autocxx");
|
||||
for file in source_files {
|
||||
println!("cargo:rerun-if-changed={file}");
|
||||
|
||||
Reference in New Issue
Block a user