Normalise remapped sysroot path as $SRC_DIR
This commit is contained in:
parent
65520ec802
commit
d66506d353
1 changed files with 6 additions and 0 deletions
|
|
@ -3616,6 +3616,12 @@ impl<'test> TestCx<'test> {
|
|||
.join("library");
|
||||
normalize_path(&src_dir, "$SRC_DIR");
|
||||
|
||||
if let Some(virtual_rust_source_base_dir) =
|
||||
option_env!("CFG_VIRTUAL_RUST_SOURCE_BASE_DIR").map(PathBuf::from)
|
||||
{
|
||||
normalize_path(&virtual_rust_source_base_dir.join("library"), "$SRC_DIR");
|
||||
}
|
||||
|
||||
// Paths into the build directory
|
||||
let test_build_dir = &self.config.build_base;
|
||||
let parent_build_dir = test_build_dir.parent().unwrap().parent().unwrap().parent().unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue