Add test for remap-from in the form of $PWD/trailing
This commit is contained in:
parent
94ecdfd115
commit
b76ce69606
2 changed files with 9 additions and 0 deletions
6
src/test/run-make-fulldeps/remap-path-prefix/Makefile
Normal file
6
src/test/run-make-fulldeps/remap-path-prefix/Makefile
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
-include ../tools.mk
|
||||
|
||||
# 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 "$$PWD/auxiliary" $(TMPDIR)/liblib.rmeta || exit 1
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fn lib() {
|
||||
panic!("calm");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue