summaryrefslogtreecommitdiffstats
path: root/tests/run-make/invalid-so/Makefile
blob: e36c7040bc6cadeff30b3ba777842c132c2b364e (plain)
1
2
3
4
5
6
7
include ../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`'