2014-07-23 11:56:36 -07:00
|
|
|
-include ../tools.mk
|
|
|
|
all:
|
|
|
|
$(RUSTC) foo.rs --target=my-awesome-platform.json --crate-type=lib --emit=asm
|
2015-02-08 09:36:08 +01:00
|
|
|
grep -q -v morestack < $(TMPDIR)/foo.s
|
2016-01-21 19:30:22 +03:00
|
|
|
$(RUSTC) foo.rs --target=my-invalid-platform.json 2>&1 | grep -q "Error loading target specification"
|
2014-07-23 11:56:36 -07:00
|
|
|
$(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
|
2017-10-10 10:05:29 +02:00
|
|
|
RUST_TARGET_PATH=. $(RUSTC) foo.rs --target=my-x86_64-unknown-linux-gnu-platform --crate-type=lib --emit=asm
|
2016-04-10 22:17:27 -05:00
|
|
|
$(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 -
|