Skip to content

Commit d4f296f

Browse files
authored
Rollup merge of #40578 - michaelwoerister:shorter-compiletest-stamps, r=alexcrichton
Make the filenames of .stamp files generated by compiletest shorter Otherwise we run into filename length limitations on some file systems. See https://bugs.launchpad.net/ecryptfs/+bug/344878 for an example where we only can have ~145 characters for filenames. r? @alexcrichton
2 parents fde6941 + cbb3af1 commit d4f296f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tools/compiletest/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,9 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn
486486
}
487487

488488
fn stamp(config: &Config, testpaths: &TestPaths) -> PathBuf {
489-
let stamp_name = format!("{}-H-{}-T-{}-S-{}.stamp",
489+
let stamp_name = format!("{}-{}.stamp",
490490
testpaths.file.file_name().unwrap()
491491
.to_str().unwrap(),
492-
config.host,
493-
config.target,
494492
config.stage_id);
495493
config.build_base.canonicalize()
496494
.unwrap_or(config.build_base.clone())

0 commit comments

Comments
 (0)