Skip to content

Commit b76ce69

Browse files
committed
Add test for remap-from in the form of $PWD/trailing
1 parent 94ecdfd commit b76ce69

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-include ../tools.mk
2+
3+
# Checks if remapping works if the remap-from string contains path to the working directory plus more
4+
all:
5+
$(RUSTC) --remap-path-prefix $$PWD/auxiliary=/the/aux --crate-type=lib --emit=metadata auxiliary/lib.rs
6+
! grep "$$PWD/auxiliary" $(TMPDIR)/liblib.rmeta || exit 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn lib() {
2+
panic!("calm");
3+
}

0 commit comments

Comments
 (0)