mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
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
|
||||
}
|
||||
|
||||
/// 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()
|
||||
|
Loading…
Reference in New Issue
Block a user