summaryrefslogtreecommitdiffstats
path: root/src/test/run-make/invalid-so/Makefile
blob: 5b82ecd207dda42bff095b9041f99baa973ccf96 (plain)
1
2
3
4
5
6
7
include ../../run-make-fulldeps/tools.mk

DYLIB_NAME := $(shell echo | $(RUSTC) --crate-name foo --crate-type dylib --print file-names -)

all:
	echo >> $(TMPDIR)/$(DYLIB_NAME)
	$(RUSTC) --crate-type lib --extern foo=$(TMPDIR)/$(DYLIB_NAME) bar.rs 2>&1 | $(CGREP) 'invalid metadata files for crate `foo`'