Skip to content

Commit f8e25a6

Browse files
committedJun 11, 2024
Add path function to run-make-support
1 parent f21554f commit f8e25a6

File tree

1 file changed

+5
-0
lines changed
  • src/tools/run-make-support/src

1 file changed

+5
-0
lines changed
 

Diff for: ‎src/tools/run-make-support/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ pub fn htmldocck() -> Command {
7676
python
7777
}
7878

79+
/// Returns the path for a local test file.
80+
pub fn path<P: AsRef<Path>>(p: P) -> PathBuf {
81+
cwd().join(p.as_ref())
82+
}
83+
7984
/// Path to the root rust-lang/rust source checkout.
8085
pub fn source_root() -> PathBuf {
8186
env_var("SOURCE_ROOT").into()

0 commit comments

Comments
 (0)