File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/test/run-make/emit-path-unhashed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 33OUT =$(TMPDIR ) /emit
44
55# --emit KIND=PATH should not affect crate hash vs --emit KIND
6- all : $(OUT ) /a/libfoo.rlib $(OUT ) /b/libfoo.rlib $(TMPDIR ) /libfoo.rlib
6+ all : $(OUT ) /a/libfoo.rlib $(OUT ) /b/libfoo.rlib $(OUT ) /c/libfoo.rlib \
7+ $(TMPDIR ) /libfoo.rlib
78 $(RUSTC ) -Zls $(TMPDIR ) /libfoo.rlib > $(TMPDIR ) /base.txt
89 $(RUSTC ) -Zls $(OUT ) /a/libfoo.rlib > $(TMPDIR ) /a.txt
910 $(RUSTC ) -Zls $(OUT ) /b/libfoo.rlib > $(TMPDIR ) /b.txt
11+ $(RUSTC ) -Zls $(OUT ) /c/libfoo.rlib > $(TMPDIR ) /c.txt
1012
1113 diff $(TMPDIR)/base.txt $(TMPDIR)/a.txt
1214 diff $(TMPDIR)/base.txt $(TMPDIR)/b.txt
1315
16+ # Different KIND parameters do affect hash.
17+ # diff exits 1 on difference, 2 on trouble
18+ diff $(TMPDIR)/base.txt $(TMPDIR)/c.txt ; test "$$?" -eq 1
19+
1420# Default output name
1521$(TMPDIR ) /libfoo.rlib : foo.rs
1622 $(RUSTC ) --emit link foo.rs
@@ -24,3 +30,8 @@ $(OUT)/a/libfoo.rlib: foo.rs
2430$(OUT ) /b/libfoo.rlib : foo.rs
2531 mkdir -p $(OUT ) /b
2632 $(RUSTC ) --emit link=$@ foo.rs
33+
34+ # Output multiple kinds
35+ $(OUT ) /c/libfoo.rlib : foo.rs
36+ mkdir -p $(OUT ) /c
37+ $(RUSTC ) --emit link=$@ ,metadata foo.rs
You can’t perform that action at this time.
0 commit comments