about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2016-04-10 22:17:27 -0500
committerDoug Goldstein <cardoe@cardoe.com>2016-12-02 10:07:39 -0600
commit7151b5ad7821dc7c1990af0bd2850fcbcbe100e7 (patch)
tree772a09e2e428497ab8010f4628fb8cd1387d96b0 /src
parentff112644defc6a982bfd6a793afbeb3155173742 (diff)
downloadrust-7151b5ad7821dc7c1990af0bd2850fcbcbe100e7.tar.gz
rust-7151b5ad7821dc7c1990af0bd2850fcbcbe100e7.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/test/run-make/target-specs/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/run-make/target-specs/Makefile b/src/test/run-make/target-specs/Makefile
index 0c9a0169c1a..6b58ad7b6df 100644
--- a/src/test/run-make/target-specs/Makefile
+++ b/src/test/run-make/target-specs/Makefile
@@ -6,3 +6,4 @@ all:
 	$(RUSTC) foo.rs --target=my-incomplete-platform.json 2>&1 | grep 'Field llvm-target'
 	RUST_TARGET_PATH=. $(RUSTC) foo.rs --target=my-awesome-platform --crate-type=lib --emit=asm
 	RUST_TARGET_PATH=. $(RUSTC) foo.rs --target=x86_64-unknown-linux-gnu --crate-type=lib --emit=asm
+	$(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 -