diff options
| author | Andy Wang <cbeuw.andy@gmail.com> | 2021-05-15 19:35:10 +0100 |
|---|---|---|
| committer | Andy Wang <cbeuw.andy@gmail.com> | 2021-05-16 12:30:53 +0100 |
| commit | b76ce696061f6c72a1df5aa6a935ade7cc30696b (patch) | |
| tree | e9fbaf02d6a0865f6629e2d4d83421bb20360dc3 | |
| parent | 94ecdfd115a353f65d4b21056b23c7074339be6e (diff) | |
| download | rust-b76ce696061f6c72a1df5aa6a935ade7cc30696b.tar.gz rust-b76ce696061f6c72a1df5aa6a935ade7cc30696b.zip | |
Add test for remap-from in the form of $PWD/trailing
| -rw-r--r-- | src/test/run-make-fulldeps/remap-path-prefix/Makefile | 6 | ||||
| -rw-r--r-- | src/test/run-make-fulldeps/remap-path-prefix/auxiliary/lib.rs | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/test/run-make-fulldeps/remap-path-prefix/Makefile b/src/test/run-make-fulldeps/remap-path-prefix/Makefile new file mode 100644 index 00000000000..c923d7e8011 --- /dev/null +++ b/src/test/run-make-fulldeps/remap-path-prefix/Makefile @@ -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 diff --git a/src/test/run-make-fulldeps/remap-path-prefix/auxiliary/lib.rs b/src/test/run-make-fulldeps/remap-path-prefix/auxiliary/lib.rs new file mode 100644 index 00000000000..7067130a461 --- /dev/null +++ b/src/test/run-make-fulldeps/remap-path-prefix/auxiliary/lib.rs @@ -0,0 +1,3 @@ +fn lib() { + panic!("calm"); +} |
