@@ -44,17 +44,15 @@ fn default_environment(session::session sess,
44
44
case ( session:: os_linux) { libc = "libc.so.6" ; }
45
45
}
46
46
47
- ret
48
- [
49
- // Target bindings.
50
- tup ( "target_os" , eval:: val_str ( std:: os:: target_os ( ) ) ) ,
51
- tup ( "target_arch" , eval:: val_str ( "x86" ) ) ,
52
- tup ( "target_libc" , eval:: val_str ( libc) ) ,
53
-
54
- // Build bindings.
55
- tup ( "build_compiler" , eval:: val_str ( argv0) ) ,
56
- tup ( "build_input" , eval:: val_str ( input) )
57
- ] ;
47
+ ret [ // Target bindings.
48
+ tup ( "target_os" , eval:: val_str ( std:: os:: target_os ( ) ) ) ,
49
+ tup ( "target_arch" , eval:: val_str ( "x86" ) ) ,
50
+ tup ( "target_libc" , eval:: val_str ( libc) ) ,
51
+
52
+ // Build bindings.
53
+ tup ( "build_compiler" , eval:: val_str ( argv0) ) ,
54
+ tup ( "build_input" , eval:: val_str ( input) )
55
+ ] ;
58
56
}
59
57
60
58
fn parse_input ( session:: session sess,
@@ -286,8 +284,7 @@ fn main(vec[str] args) {
286
284
if ( opt_present ( match , "O" ) ) {
287
285
optLevel = 2 u;
288
286
if ( opt_present( match , "OptLevel" ) ) {
289
- log
290
- ( "error: -O and --OptLevel both provided" ) ;
287
+ log_err "error: -O and --OptLevel both provided" ;
291
288
fail;
292
289
}
293
290
}
@@ -302,14 +299,13 @@ fn main(vec[str] args) {
302
299
case ( "2" ) { optLevel = 2 u; }
303
300
case ( "3" ) { optLevel = 3 u; }
304
301
case ( _) {
305
- log
306
- ( "error: optimization level needs to be between 0-3" ) ;
302
+ log_err "error: optimization level needs to be between 0-3" ;
307
303
fail;
308
304
}
309
305
}
310
306
}
311
307
case ( none[ str] ) {
312
- log ( "error: expected optimization level after --OptLevel=" ) ;
308
+ log_err "error: expected optimization level after --OptLevel=" ;
313
309
fail;
314
310
}
315
311
}
0 commit comments