File tree 5 files changed +18
-4
lines changed
5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ impl_stable_hash_for!(struct self::OutputFilenames {
410
410
outputs
411
411
} ) ;
412
412
413
- pub const RUST_CGU_EXT : & str = "rust-cgu " ;
413
+ pub const RUST_CGU_EXT : & str = "rcgu " ;
414
414
415
415
impl OutputFilenames {
416
416
pub fn path ( & self , flavor : OutputType ) -> PathBuf {
Original file line number Diff line number Diff line change @@ -1222,7 +1222,7 @@ fn add_upstream_rust_crates(cmd: &mut Linker,
1222
1222
let canonical = f. replace ( "-" , "_" ) ;
1223
1223
let canonical_name = name. replace ( "-" , "_" ) ;
1224
1224
1225
- // Look for `.rust-cgu .o` at the end of the filename to conclude
1225
+ // Look for `.rcgu .o` at the end of the filename to conclude
1226
1226
// that this is a Rust-related object file.
1227
1227
fn looks_like_rust ( s : & str ) -> bool {
1228
1228
let path = Path :: new ( s) ;
Original file line number Diff line number Diff line change 2
2
3
3
all :
4
4
$(RUSTC ) -C extra-filename=bar foo.rs -C save-temps
5
- rm $(TMPDIR ) /foobar.foo0.rust-cgu .o
5
+ rm $(TMPDIR ) /foobar.foo0.rcgu .o
6
6
rm $(TMPDIR ) /$(call BIN,foobar)
Original file line number Diff line number Diff line change @@ -34,6 +34,20 @@ pub enum Mode {
34
34
MirOpt ,
35
35
}
36
36
37
+ impl Mode {
38
+ pub fn disambiguator ( self ) -> & ' static str {
39
+ // Run-pass and pretty run-pass tests could run concurrently, and if they do,
40
+ // they need to keep their output segregated. Same is true for debuginfo tests that
41
+ // can be run both on gdb and lldb.
42
+ match self {
43
+ Pretty => ".pretty" ,
44
+ DebugInfoGdb => ".gdb" ,
45
+ DebugInfoLldb => ".lldb" ,
46
+ _ => "" ,
47
+ }
48
+ }
49
+ }
50
+
37
51
impl FromStr for Mode {
38
52
type Err = ( ) ;
39
53
fn from_str ( s : & str ) -> Result < Mode , ( ) > {
Original file line number Diff line number Diff line change @@ -1565,7 +1565,7 @@ actual:\n\
1565
1565
fn aux_output_dir_name ( & self ) -> PathBuf {
1566
1566
let f = self . output_base_name ( ) ;
1567
1567
let mut fname = f. file_name ( ) . unwrap ( ) . to_os_string ( ) ;
1568
- fname. push ( & format ! ( ". {}.libaux " , self . config. mode) ) ;
1568
+ fname. push ( & format ! ( "{}.aux " , self . config. mode. disambiguator ( ) ) ) ;
1569
1569
f. with_file_name ( & fname)
1570
1570
}
1571
1571
You can’t perform that action at this time.
0 commit comments