2022-08-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2021-05-15 19:35:10 +01:00
|
|
|
|
2021-08-24 13:21:27 +01:00
|
|
|
# ignore-windows
|
|
|
|
|
2021-05-15 19:35:10 +01:00
|
|
|
# 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 19:04:46 +01:00
|
|
|
grep "/the/aux/lib.rs" $(TMPDIR)/liblib.rmeta || exit 1
|
2021-05-15 19:35:10 +01:00
|
|
|
! grep "$$PWD/auxiliary" $(TMPDIR)/liblib.rmeta || exit 1
|