2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2014-07-23 13:56:36 -05:00
|
|
|
all:
|
|
|
|
$(RUSTC) foo.rs --target=my-awesome-platform.json --crate-type=lib --emit=asm
|
2017-11-23 09:19:50 -06:00
|
|
|
$(CGREP) -v morestack < $(TMPDIR)/foo.s
|
|
|
|
$(RUSTC) foo.rs --target=my-invalid-platform.json 2>&1 | $(CGREP) "Error loading target specification"
|
|
|
|
$(RUSTC) foo.rs --target=my-incomplete-platform.json 2>&1 | $(CGREP) 'Field llvm-target'
|
2014-07-23 13:56:36 -05:00
|
|
|
RUST_TARGET_PATH=. $(RUSTC) foo.rs --target=my-awesome-platform --crate-type=lib --emit=asm
|
2017-10-10 03:05:29 -05: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 -
|
2021-06-06 10:13:27 -05:00
|
|
|
$(RUSTC) foo.rs --target=definitely-not-builtin-target 2>&1 | $(CGREP) 'may not set is_builtin'
|
2023-06-23 12:21:35 -05:00
|
|
|
$(RUSTC) foo.rs --target=endianness-mismatch 2>&1 | $(CGREP) '"data-layout" claims architecture is little-endian'
|
2024-01-17 08:26:26 -06:00
|
|
|
$(RUSTC) foo.rs --target=mismatching-data-layout --crate-type=lib 2>&1 | $(CGREP) 'data-layout for target'
|