summaryrefslogtreecommitdiffstats
path: root/tests/run-make/crate-data-smoke/Makefile
blob: a453f65ff3ea24646f76f96f58fd015890e386e1 (plain)
1
2
3
4
5
6
7
8
9
10
include ../tools.mk

all:
	[ `$(RUSTC) --print crate-name crate.rs` = "foo" ]
	[ `$(RUSTC) --print file-names crate.rs` = "$(call BIN,foo)" ]
	[ `$(RUSTC) --print file-names --crate-type=lib \
		--test crate.rs` = "$(call BIN,foo)" ]
	[ `$(RUSTC) --print file-names --test lib.rs` = "$(call BIN,mylib)" ]
	$(RUSTC) --print file-names lib.rs
	$(RUSTC) --print file-names rlib.rs