File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ fn main() {
27
27
let stage = env:: var ( "RUSTC_STAGE" ) . expect ( "RUSTC_STAGE was not set" ) ;
28
28
let sysroot = env:: var_os ( "RUSTC_SYSROOT" ) . expect ( "RUSTC_SYSROOT was not set" ) ;
29
29
30
+ use std:: str:: FromStr ;
31
+
32
+ let verbose = match env:: var ( "RUSTC_VERBOSE" ) {
33
+ Ok ( s) => usize:: from_str ( & s) . expect ( "RUSTC_VERBOSE should be an integer" ) ,
34
+ Err ( _) => 0 ,
35
+ } ;
36
+
30
37
let mut dylib_path = bootstrap:: util:: dylib_path ( ) ;
31
38
dylib_path. insert ( 0 , PathBuf :: from ( libdir) ) ;
32
39
@@ -63,6 +70,10 @@ fn main() {
63
70
cmd. arg ( "--deny-render-differences" ) ;
64
71
}
65
72
73
+ if verbose > 1 {
74
+ eprintln ! ( "rustdoc command: {:?}" , cmd) ;
75
+ }
76
+
66
77
std:: process:: exit ( match cmd. status ( ) {
67
78
Ok ( s) => s. code ( ) . unwrap_or ( 1 ) ,
68
79
Err ( e) => panic ! ( "\n \n failed to run {:?}: {}\n \n " , cmd, e) ,
You can’t perform that action at this time.
0 commit comments