Add path function to run-make-support

This commit is contained in:
Guillaume Gomez 2024-06-11 14:09:07 +02:00
parent f21554f7f0
commit f8e25a687e

View File

@ -76,6 +76,11 @@ pub fn htmldocck() -> Command {
python
}
/// Returns the path for a local test file.
pub fn path<P: AsRef<Path>>(p: P) -> PathBuf {
cwd().join(p.as_ref())
}
/// Path to the root rust-lang/rust source checkout.
pub fn source_root() -> PathBuf {
env_var("SOURCE_ROOT").into()