]> git.lizzy.rs Git - rust.git/blob - tests/incremental/commandline-args.rs
Rollup merge of #107706 - tgross35:atomic-as-mut-ptr, r=m-ou-se
[rust.git] / tests / incremental / commandline-args.rs
1 // Test that changing a tracked commandline argument invalidates
2 // the cache while changing an untracked one doesn't.
3
4 // ignore-asmjs wasm2js does not support source maps yet
5 // revisions:rpass1 rpass2 rpass3 rpass4
6 // compile-flags: -Z query-dep-graph
7
8 #![feature(rustc_attrs)]
9
10 #![rustc_partition_codegened(module="commandline_args", cfg="rpass2")]
11 #![rustc_partition_reused(module="commandline_args", cfg="rpass3")]
12 #![rustc_partition_codegened(module="commandline_args", cfg="rpass4")]
13
14 // Between revisions 1 and 2, we are changing the debuginfo-level, which should
15 // invalidate the cache. Between revisions 2 and 3, we are adding `--verbose`
16 // which should have no effect on the cache. Between revisions, we are adding
17 // `--remap-path-prefix` which should invalidate the cache:
18 //[rpass1] compile-flags: -C debuginfo=0
19 //[rpass2] compile-flags: -C debuginfo=2
20 //[rpass3] compile-flags: -C debuginfo=2 --verbose
21 //[rpass4] compile-flags: -C debuginfo=2 --verbose --remap-path-prefix=/home/bors/rust=src
22
23 pub fn main() {
24     // empty
25 }