File tree 4 files changed +35
-27
lines changed
extern-flag-disambiguates
4 files changed +35
-27
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ run-make/dep-info-spaces/Makefile
11
11
run-make/dep-info/Makefile
12
12
run-make/emit-to-stdout/Makefile
13
13
run-make/export-executable-symbols/Makefile
14
- run-make/extern-flag-disambiguates/Makefile
15
14
run-make/extern-fn-reachable/Makefile
16
15
run-make/fmt-write-bloat/Makefile
17
16
run-make/foreign-double-unwind/Makefile
Original file line number Diff line number Diff line change @@ -41,3 +41,8 @@ The setup for the `rmake.rs` version is a 3-stage process:
41
41
42
42
[ `run_make_support` ] : ../../src/tools/run-make-support
43
43
[ extern_prelude ] : https://doc.rust-lang.org/reference/names/preludes.html#extern-prelude
44
+
45
+ ### Formatting
46
+
47
+ Note that files under ` tests/ ` are not formatted by ` ./x fmt ` ,
48
+ use ` rustfmt tests/path/to/file.rs ` to format a specific file if desired.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ //@ ignore-cross-compile
2
+
3
+ use run_make_support:: { cwd, run, rustc} ;
4
+
5
+ // Attempt to build this dependency tree:
6
+ //
7
+ // A.1 A.2
8
+ // |\ |
9
+ // | \ |
10
+ // B \ C
11
+ // \ | /
12
+ // \|/
13
+ // D
14
+ //
15
+ // Note that A.1 and A.2 are crates with the same name.
16
+
17
+ // original Makefile at https://github.com/rust-lang/rust/issues/14469
18
+
19
+ fn main ( ) {
20
+ rustc ( ) . metadata ( "1" ) . extra_filename ( "-1" ) . input ( "a.rs" ) . run ( ) ;
21
+ rustc ( ) . metadata ( "2" ) . extra_filename ( "-2" ) . input ( "a.rs" ) . run ( ) ;
22
+ rustc ( ) . input ( "b.rs" ) . extern_ ( "a" , "liba-1.rlib" ) . run ( ) ;
23
+ rustc ( ) . input ( "c.rs" ) . extern_ ( "a" , "liba-2.rlib" ) . run ( ) ;
24
+ println ! ( "before" ) ;
25
+ rustc ( ) . cfg ( "before" ) . input ( "d.rs" ) . extern_ ( "a" , "liba-1.rlib" ) . run ( ) ;
26
+ run ( "d" ) ;
27
+ println ! ( "after" ) ;
28
+ rustc ( ) . cfg ( "after" ) . input ( "d.rs" ) . extern_ ( "a" , "liba-1.rlib" ) . run ( ) ;
29
+ run ( "d" ) ;
30
+ }
You can’t perform that action at this time.
0 commit comments