summary refs log tree commit diff
path: root/src/test/run-make/missing-crate-dependency/Makefile
blob: 3f8b97f2566520a3c28d0e41b67e0e2d82151095 (plain)
1
2
3
4
5
6
7
8
9
-include ../tools.mk

all: 
	$(RUSTC) --crate-type=rlib crateA.rs
	$(RUSTC) --crate-type=rlib crateB.rs
	$(call REMOVE_RLIBS,crateA)
	# Ensure crateC fails to compile since dependency crateA is missing
	$(RUSTC) crateC.rs 2>&1 | \
		grep "error: can't find crate for \`crateA\` which \`crateB\` depends on"