rust/tests/run-make-fulldeps/remap-path-prefix/Makefile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
367 B
Makefile
Raw Normal View History

include ../tools.mk
2021-08-24 07:21:27 -05:00
# ignore-windows
# Checks if remapping works if the remap-from string contains path to the working directory plus more
all:
$(RUSTC) --remap-path-prefix $$PWD/auxiliary=/the/aux --crate-type=lib --emit=metadata auxiliary/lib.rs
2021-08-19 13:04:46 -05:00
grep "/the/aux/lib.rs" $(TMPDIR)/liblib.rmeta || exit 1
! grep "$$PWD/auxiliary" $(TMPDIR)/liblib.rmeta || exit 1