diff --git a/freertos-rust-examples/build.rs b/freertos-rust-examples/build.rs index 0688c70..4d25c1c 100644 --- a/freertos-rust-examples/build.rs +++ b/freertos-rust-examples/build.rs @@ -64,16 +64,18 @@ fn main() { b.compile().unwrap_or_else(|e| panic!("{}", e)); } -/// Print relevant environment variables +/// Print relevant environment variables. +/// To avoid cluttering the output on each build, this is not displayed in the terminal. +/// See the output in the corresponding target output file e.g. target/debug/build//output fn print_env() { let env_keys = ["TARGET", "OUT_DIR", "HOST"]; env::vars().for_each(|(key, val)| { if key.starts_with("CARGO") { - println!("cargo:warning={}={}", key, val); + println!("{}={}", key, val); } else if env_keys.contains(&key.as_str()) { - println!("cargo:warning={}={}", key, val); + println!("{}={}", key, val); } else { - // println!("cargo:warning={}={}", key, val); + // println!("{}={}", key, val); } }); }