diff --git a/fish-rust/build.rs b/fish-rust/build.rs index 4b60b664b..e76b193c7 100644 --- a/fish-rust/build.rs +++ b/fish-rust/build.rs @@ -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}");