Skip to content

Commit 5a692a7

Browse files
committed
Add integration test for --remap-pathh-prefix
1 parent bfa74c2 commit 5a692a7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/test/incremental/commandline-args.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,23 @@
22
// the cache while changing an untracked one doesn't.
33

44
// ignore-asmjs wasm2js does not support source maps yet
5-
// revisions:rpass1 rpass2 rpass3
5+
// revisions:rpass1 rpass2 rpass3 rpass4
66
// compile-flags: -Z query-dep-graph
77

88
#![feature(rustc_attrs)]
99

1010
#![rustc_partition_codegened(module="commandline_args", cfg="rpass2")]
1111
#![rustc_partition_reused(module="commandline_args", cfg="rpass3")]
12+
#![rustc_partition_codegened(module="commandline_args", cfg="rpass4")]
1213

1314
// Between revisions 1 and 2, we are changing the debuginfo-level, which should
1415
// invalidate the cache. Between revisions 2 and 3, we are adding `--verbose`
15-
// which should have no effect on the cache:
16+
// which should have no effect on the cache. Between revisions, we are adding
17+
// `--remap-path-prefix` which should invalidate the cache:
1618
//[rpass1] compile-flags: -C debuginfo=0
1719
//[rpass2] compile-flags: -C debuginfo=2
1820
//[rpass3] compile-flags: -C debuginfo=2 --verbose
21+
//[rpass4] compile-flags: -C debuginfo=2 --verbose --remap-path-prefix=/home/bors/rust=src
1922

2023
pub fn main() {
2124
// empty

src/test/run-make-fulldeps/incr-add-rust-src-component/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-include ../tools.mk
22

33
# rust-lang/rust#70924: Test that if we add rust-src component in between two
4-
# incremetnal compiles, the compiler does not ICE on the second.
4+
# incremental compiles, the compiler does not ICE on the second.
55

66
# This test uses `ln -s` rather than copying to save testing time, but its
77
# usage doesn't work on windows. So ignore windows.

0 commit comments

Comments
 (0)