@@ -394,28 +394,28 @@ fn main(vec[str] args) {
394
394
if ( ls) {
395
395
front:: creader:: list_file_metadata ( ifile, std:: io:: stdout ( ) ) ;
396
396
ret;
397
- } else {
398
- alt ( output_file) {
399
- case ( none) {
400
- let vec[ str] parts = str:: split ( ifile, '.' as u8 ) ;
401
- vec:: pop[ str] ( parts) ;
402
- saved_out_filename = parts. ( 0 ) ;
403
- alt ( sopts. output_type ) {
404
- case ( link:: output_type_none) { parts += [ "pp" ] ; }
405
- case ( link:: output_type_bitcode) { parts += [ "bc" ] ; }
406
- case ( link:: output_type_assembly) { parts += [ "s" ] ; }
407
-
408
- // Object and exe output both use the '.o' extension here
409
- case ( link:: output_type_object) { parts += [ "o" ] ; }
410
- case ( link:: output_type_exe) { parts += [ "o" ] ; }
411
- }
412
- auto ofile = str:: connect ( parts, "." ) ;
413
- compile_input ( sess, env, ifile, ofile) ;
414
- }
415
- case ( some ( ?ofile) ) {
416
- saved_out_filename = ofile;
417
- compile_input ( sess, env, ifile, ofile) ;
397
+ }
398
+
399
+ alt ( output_file) {
400
+ case ( none) {
401
+ let vec[ str] parts = str:: split ( ifile, '.' as u8 ) ;
402
+ vec:: pop[ str] ( parts) ;
403
+ saved_out_filename = parts. ( 0 ) ;
404
+ alt ( sopts. output_type ) {
405
+ case ( link:: output_type_none) { parts += [ "pp" ] ; }
406
+ case ( link:: output_type_bitcode) { parts += [ "bc" ] ; }
407
+ case ( link:: output_type_assembly) { parts += [ "s" ] ; }
408
+
409
+ // Object and exe output both use the '.o' extension here
410
+ case ( link:: output_type_object) { parts += [ "o" ] ; }
411
+ case ( link:: output_type_exe) { parts += [ "o" ] ; }
418
412
}
413
+ auto ofile = str:: connect ( parts, "." ) ;
414
+ compile_input ( sess, env, ifile, ofile) ;
415
+ }
416
+ case ( some ( ?ofile) ) {
417
+ saved_out_filename = ofile;
418
+ compile_input ( sess, env, ifile, ofile) ;
419
419
}
420
420
}
421
421
0 commit comments