File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -144,10 +144,10 @@ fn command_line_test(args: &[~str], cwd: &Path) -> ProcessOutput {
144
144
err_fd : None
145
145
} ) ;
146
146
let output = prog. finish_with_output ( ) ;
147
- io :: println ( fmt ! ( "Output from command %s with args %? was %s {%s}[%?]" ,
147
+ debug ! ( "Output from command %s with args %? was %s {%s}[%?]" ,
148
148
cmd, args, str :: from_bytes( output. output) ,
149
149
str :: from_bytes( output. error) ,
150
- output. status) ) ;
150
+ output. status) ;
151
151
/*
152
152
By the way, rustpkg *won't* return a nonzero exit code if it fails --
153
153
see #4547
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ pub fn compile_input(ctxt: &Ctx,
187
187
Lib => lib_crate,
188
188
Test | Bench | Main => bin_crate
189
189
} ;
190
- let matches = getopts ( ~ [ ~"- Z " , ~"time-passes" ]
190
+ let matches = getopts ( debug_flags ( )
191
191
+ match what {
192
192
Lib => ~[ ~"--lib"] ,
193
193
// --test compiles both #[test] and #[bench] fns
@@ -415,3 +415,7 @@ mod test {
415
415
}
416
416
417
417
}
418
+
419
+ // tjc: cheesy
420
+ fn debug_flags( ) -> ~[ ~str ] { ~[ ] }
421
+ // static debug_flags: ~[~str] = ~[~"-Z", ~"time-passes"];
You can’t perform that action at this time.
0 commit comments