Skip to content

Commit 09fae60

Browse files
committed
Fix rustc test suite
1 parent ef0b3d1 commit 09fae60

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

scripts/test_rustc_tests.sh

+13
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,19 @@ index ea06b620c4c..b969d0009c6 100644
145145
ifdef RUSTC_LINKER
146146
RUSTC := \$(RUSTC) -Clinker='\$(RUSTC_LINKER)'
147147
RUSTDOC := \$(RUSTDOC) -Clinker='\$(RUSTC_LINKER)'
148+
diff --git a/src/tools/run-make-support/src/rustdoc.rs b/src/tools/run-make-support/src/rustdoc.rs
149+
index 9607ff02f96..b7d97caf9a2 100644
150+
--- a/src/tools/run-make-support/src/rustdoc.rs
151+
+++ b/src/tools/run-make-support/src/rustdoc.rs
152+
@@ -34,8 +34,6 @@ pub fn bare() -> Self {
153+
/// Construct a \`rustdoc\` invocation with \`-L \$(TARGET_RPATH_DIR)\` set.
154+
pub fn new() -> Self {
155+
let mut cmd = setup_common();
156+
- let target_rpath_dir = env::var_os("TARGET_RPATH_DIR").unwrap();
157+
- cmd.arg(format!("-L{}", target_rpath_dir.to_string_lossy()));
158+
Self { cmd }
159+
}
160+
148161
EOF
149162

150163
echo "[TEST] rustc test suite"

0 commit comments

Comments
 (0)