File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -64,16 +64,18 @@ fn main() {
64
64
b. compile ( ) . unwrap_or_else ( |e| panic ! ( "{}" , e) ) ;
65
65
}
66
66
67
- /// Print relevant environment variables
67
+ /// Print relevant environment variables.
68
+ /// To avoid cluttering the output on each build, this is not displayed in the terminal.
69
+ /// See the output in the corresponding target output file e.g. target/debug/build/<pkg>/output
68
70
fn print_env ( ) {
69
71
let env_keys = [ "TARGET" , "OUT_DIR" , "HOST" ] ;
70
72
env:: vars ( ) . for_each ( |( key, val) | {
71
73
if key. starts_with ( "CARGO" ) {
72
- println ! ( "cargo:warning= {}={}" , key, val) ;
74
+ println ! ( "{}={}" , key, val) ;
73
75
} else if env_keys. contains ( & key. as_str ( ) ) {
74
- println ! ( "cargo:warning= {}={}" , key, val) ;
76
+ println ! ( "{}={}" , key, val) ;
75
77
} else {
76
- // println!("cargo:warning= {}={}", key, val);
78
+ // println!("{}={}", key, val);
77
79
}
78
80
} ) ;
79
81
}
You can’t perform that action at this time.
0 commit comments