about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-03-28 11:38:15 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-03-28 11:38:15 +0000
commit09fae60a86b848a2fc0ad219ecc4e438dc1eef86 (patch)
tree2d5c6406bafebf7bb2c34b27e89fe2ecc85a9ae8
parentef0b3d1def7cb38df376768810aae31de44b349e (diff)
downloadrust-09fae60a86b848a2fc0ad219ecc4e438dc1eef86.tar.gz
rust-09fae60a86b848a2fc0ad219ecc4e438dc1eef86.zip
Fix rustc test suite
-rwxr-xr-xscripts/test_rustc_tests.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/test_rustc_tests.sh b/scripts/test_rustc_tests.sh
index 96f71bcf767..f42a008dc0c 100755
--- a/scripts/test_rustc_tests.sh
+++ b/scripts/test_rustc_tests.sh
@@ -145,6 +145,19 @@ index ea06b620c4c..b969d0009c6 100644
  ifdef RUSTC_LINKER
  RUSTC := \$(RUSTC) -Clinker='\$(RUSTC_LINKER)'
  RUSTDOC := \$(RUSTDOC) -Clinker='\$(RUSTC_LINKER)'
+diff --git a/src/tools/run-make-support/src/rustdoc.rs b/src/tools/run-make-support/src/rustdoc.rs
+index 9607ff02f96..b7d97caf9a2 100644
+--- a/src/tools/run-make-support/src/rustdoc.rs
++++ b/src/tools/run-make-support/src/rustdoc.rs
+@@ -34,8 +34,6 @@ pub fn bare() -> Self {
+     /// Construct a \`rustdoc\` invocation with \`-L \$(TARGET_RPATH_DIR)\` set.
+     pub fn new() -> Self {
+         let mut cmd = setup_common();
+-        let target_rpath_dir = env::var_os("TARGET_RPATH_DIR").unwrap();
+-        cmd.arg(format!("-L{}", target_rpath_dir.to_string_lossy()));
+         Self { cmd }
+     }
+
 EOF
 
 echo "[TEST] rustc test suite"