Test presence of remapped path

This commit is contained in:
Andy Wang 2021-08-19 19:04:46 +01:00
parent 70b9a7b988
commit 08c55bdce5
No known key found for this signature in database
GPG key ID: 181B49F9F38F3374

View file

@ -3,4 +3,5 @@
# 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
grep "/the/aux/lib.rs" $(TMPDIR)/liblib.rmeta || exit 1
! grep "$$PWD/auxiliary" $(TMPDIR)/liblib.rmeta || exit 1