]> git.lizzy.rs Git - rust.git/blob - tests/run-make/invalid-so/Makefile
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / run-make / invalid-so / Makefile
1 include ../../run-make-fulldeps/tools.mk
2
3 DYLIB_NAME := $(shell echo | $(RUSTC) --crate-name foo --crate-type dylib --print file-names -)
4
5 all:
6         echo >> $(TMPDIR)/$(DYLIB_NAME)
7         $(RUSTC) --crate-type lib --extern foo=$(TMPDIR)/$(DYLIB_NAME) bar.rs 2>&1 | $(CGREP) 'invalid metadata files for crate `foo`'