blob: 2a7378fdf9ed5c80c76a5e3ac96734d35886b221 (
plain)
1
2
3
4
5
6
7
8
9
|
include ../tools.mk
# 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
grep "/the/aux/lib.rs" $(TMPDIR)/liblib.rmeta || exit 1
! grep "$$PWD/auxiliary" $(TMPDIR)/liblib.rmeta || exit 1
|