Skip to content

Commit 02a7809

Browse files
committed
Generate separate stamp files for --compare-mode=nll, and also use them. :)
1 parent ae6a9d4 commit 02a7809

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/tools/compiletest/src/main.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn
626626

627627
// Debugging emscripten code doesn't make sense today
628628
let ignore = early_props.ignore
629-
|| (!up_to_date(config, testpaths, &early_props) && config.compare_mode.is_none())
629+
|| !up_to_date(config, testpaths, &early_props)
630630
|| (config.mode == DebugInfoGdb || config.mode == DebugInfoLldb)
631631
&& config.target.contains("emscripten");
632632

@@ -642,10 +642,15 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn
642642
}
643643

644644
fn stamp(config: &Config, testpaths: &TestPaths) -> PathBuf {
645+
let mode_suffix = match config.compare_mode {
646+
Some(ref mode) => format!("-{}", mode.to_str()),
647+
None => format!(""),
648+
};
645649
let stamp_name = format!(
646-
"{}-{}.stamp",
650+
"{}-{}{}.stamp",
647651
testpaths.file.file_name().unwrap().to_str().unwrap(),
648-
config.stage_id
652+
config.stage_id,
653+
mode_suffix
649654
);
650655
config
651656
.build_base

0 commit comments

Comments
 (0)