Add path
function to run-make-support
This commit is contained in:
parent
f21554f7f0
commit
f8e25a687e
@ -76,6 +76,11 @@ pub fn htmldocck() -> Command {
|
|||||||
python
|
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.
|
/// Path to the root rust-lang/rust source checkout.
|
||||||
pub fn source_root() -> PathBuf {
|
pub fn source_root() -> PathBuf {
|
||||||
env_var("SOURCE_ROOT").into()
|
env_var("SOURCE_ROOT").into()
|
||||||
|
Loading…
Reference in New Issue
Block a user