From 18654b187286905beb99847d9f2fe3abe6fe8531 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 25 Nov 2023 19:40:31 +0100 Subject: [PATCH] build.rs: silence error output of compile checks These compile checks are expected to produce compiler errors on some systems. The errors show up when there is an unrelated error, this is probably quite confusing so fix that. Should revisit this later. --- fish-rust/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fish-rust/build.rs b/fish-rust/build.rs index 0f77f6ed5..386f5ef4f 100644 --- a/fish-rust/build.rs +++ b/fish-rust/build.rs @@ -1,6 +1,7 @@ use rsconf::{LinkType, Target}; use std::env; use std::error::Error; +use std::process::Stdio; fn main() { for key in ["DOCDIR", "DATADIR", "SYSCONFDIR", "BINDIR"] { @@ -169,6 +170,8 @@ fn compiles(file: &str) -> bool { .get_compiler() .to_command(); command.arg(file); + command.stdout(Stdio::null()); + command.stderr(Stdio::null()); command.status().unwrap().success() }