Skip to content

Commit 7151b5a

Browse files
committed
rustc: add basic test for --print target-spec
This is a very basic test of the --print target-spec feature. Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
1 parent ff11264 commit 7151b5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/run-make/target-specs/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ all:
66
$(RUSTC) foo.rs --target=my-incomplete-platform.json 2>&1 | grep 'Field llvm-target'
77
RUST_TARGET_PATH=. $(RUSTC) foo.rs --target=my-awesome-platform --crate-type=lib --emit=asm
88
RUST_TARGET_PATH=. $(RUSTC) foo.rs --target=x86_64-unknown-linux-gnu --crate-type=lib --emit=asm
9+
$(RUSTC) -Z unstable-options --target=my-awesome-platform.json --print target-spec-json > $(TMPDIR)/test-platform.json && $(RUSTC) -Z unstable-options --target=$(TMPDIR)/test-platform.json --print target-spec-json | diff -q $(TMPDIR)/test-platform.json -

0 commit comments

Comments
 (0)