From c07d1e2f88cb3b1a0604ae8f18b478c1aeb7a7fa Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sat, 21 Oct 2023 19:01:08 +0000 Subject: Use same --remap-path-prefix as bootstrap for testing the rustc test suite This allows removing the CFG_VIRTUAL_RUST_SOURCE_BASE_DIR hack and re-enabling a fair amount of tests. --- scripts/setup_rust_fork.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/setup_rust_fork.sh') diff --git a/scripts/setup_rust_fork.sh b/scripts/setup_rust_fork.sh index 6bcf56abb95..3e48fb006de 100644 --- a/scripts/setup_rust_fork.sh +++ b/scripts/setup_rust_fork.sh @@ -1,7 +1,10 @@ #!/usr/bin/env bash set -e -./y.sh build +# Compiletest expects all standard library paths to start with /rustc/FAKE_PREFIX. +# CG_CLIF_STDLIB_REMAP_PATH_PREFIX will cause cg_clif's build system to pass +# --remap-path-prefix to handle this. +CG_CLIF_STDLIB_REMAP_PATH_PREFIX=/rustc/FAKE_PREFIX ./y.sh build echo "[SETUP] Rust fork" git clone https://github.com/rust-lang/rust.git || true @@ -32,8 +35,6 @@ verbose-tests = false EOF popd -export CFG_VIRTUAL_RUST_SOURCE_BASE_DIR="$(cd build/stdlib; pwd)" - # Allow the testsuite to use llvm tools host_triple=$(rustc -vV | grep host | cut -d: -f2 | tr -d " ") export LLVM_BIN_DIR="$(rustc --print sysroot)/lib/rustlib/$host_triple/bin" -- cgit 1.4.1-3-g733a5