diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index 9fb6a3f5e07..6da37df1927 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -493,6 +493,7 @@ fn stamp(config: &Config, testpaths: &TestPaths) -> PathBuf { config.stage_id); config.build_base.canonicalize() .unwrap_or_else(|_| config.build_base.clone()) + .join(&testpaths.relative_dir) .join(stamp_name) } @@ -524,6 +525,10 @@ fn up_to_date(config: &Config, testpaths: &TestPaths, props: &EarlyProps) -> boo let lib = lib.unwrap(); inputs.push(mtime(&lib.path())); } + if let Some(ref rustdoc_path) = config.rustdoc_path { + inputs.push(mtime(&rustdoc_path)); + inputs.push(mtime(&rust_src_dir.join("src/etc/htmldocck.py"))); + } inputs.iter().any(|input| *input > stamp) }