blob: b5a5bf492abe5c62833d439595fee9a010733900 [file] [log] [blame]
-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 | \
$(CGREP) 'can'"'"'t find crate for `crateA` which `crateB` depends on'