@@ -27,24 +27,6 @@ index d95b5b7f17f..00b6f0e3635 100644
27
27
[dev-dependencies]
28
28
rand = "0.7"
29
29
rand_xorshift = "0.2"
30
- diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
31
- index 8431aa7b818..a3ff7e68ce5 100644
32
- --- a/src/tools/compiletest/src/runtest.rs
33
- +++ b/src/tools/compiletest/src/runtest.rs
34
- @@ -3489,12 +3489,7 @@ fn normalize_output(&self, output: &str, custom_rules: &[(String, String)]) -> S
35
- let compiler_src_dir = base_dir.join("compiler");
36
- normalize_path(&compiler_src_dir, "$( echo ' $COMPILER_DIR' ) ");
37
-
38
- - if let Some(virtual_rust_source_base_dir) =
39
- - option_env!("CFG_VIRTUAL_RUST_SOURCE_BASE_DIR").map(PathBuf::from)
40
- - {
41
- - normalize_path(&virtual_rust_source_base_dir.join("library"), "$( echo ' $SRC_DIR' ) ");
42
- - normalize_path(&virtual_rust_source_base_dir.join("compiler"), "$( echo ' $COMPILER_DIR' ) ");
43
- - }
44
- + normalize_path(&Path::new("$( cd ../build_sysroot/sysroot_src/library; pwd) "), "$( echo ' $SRC_DIR' ) ");
45
-
46
- // Paths into the build directory
47
- let test_build_dir = &self.config.build_base;
48
30
EOF
49
31
50
32
cat > config.toml << EOF
69
51
# FIXME remove once inline asm is fully supported
70
52
export RUSTFLAGS=" $RUSTFLAGS --cfg=rustix_use_libc"
71
53
54
+ export CFG_VIRTUAL_RUST_SOURCE_BASE_DIR=" $( cd build_sysroot/sysroot_src; pwd) "
55
+
72
56
# Allow the testsuite to use llvm tools
73
57
host_triple=$( rustc -vV | grep host | cut -d: -f2 | tr -d " " )
74
58
export LLVM_BIN_DIR=" $( rustc --print sysroot) /lib/rustlib/$host_triple /bin"
0 commit comments