We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65520ec commit d66506dCopy full SHA for d66506d
src/tools/compiletest/src/runtest.rs
@@ -3616,6 +3616,12 @@ impl<'test> TestCx<'test> {
3616
.join("library");
3617
normalize_path(&src_dir, "$SRC_DIR");
3618
3619
+ if let Some(virtual_rust_source_base_dir) =
3620
+ option_env!("CFG_VIRTUAL_RUST_SOURCE_BASE_DIR").map(PathBuf::from)
3621
+ {
3622
+ normalize_path(&virtual_rust_source_base_dir.join("library"), "$SRC_DIR");
3623
+ }
3624
+
3625
// Paths into the build directory
3626
let test_build_dir = &self.config.build_base;
3627
let parent_build_dir = test_build_dir.parent().unwrap().parent().unwrap().parent().unwrap();
0 commit comments