Skip to content

Commit 89c5aa9

Browse files
committed
Fix rustc test suite
1 parent 35e138e commit 89c5aa9

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

scripts/rustc-clif.rs

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ fn main() {
3333
args.push(OsString::from("--sysroot"));
3434
args.push(OsString::from(sysroot.to_str().unwrap()));
3535
}
36+
if passed_args.is_empty() {
37+
// Don't pass any arguments when the user didn't pass any arguments
38+
// either to ensure the help message is shown.
39+
args.clear();
40+
}
3641
args.extend(passed_args);
3742

3843
let rustc = if let Some(rustc) = option_env!("RUSTC") {

scripts/test_bootstrap.sh

-17
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,5 @@ rm -r compiler/rustc_codegen_cranelift/{Cargo.*,src}
1111
cp ../Cargo.* compiler/rustc_codegen_cranelift/
1212
cp -r ../src compiler/rustc_codegen_cranelift/src
1313

14-
# FIXME(rust-lang/rust#132719) remove once it doesn't break without this patch
15-
cat <<EOF | git apply -
16-
diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs
17-
index 3394f2a84a0..cb980dd4d7c 100644
18-
--- a/src/bootstrap/src/core/build_steps/compile.rs
19-
+++ b/src/bootstrap/src/core/build_steps/compile.rs
20-
@@ -1976,7 +1976,7 @@ fn run(self, builder: &Builder<'_>) -> Compiler {
21-
}
22-
}
23-
24-
- {
25-
+ if builder.config.llvm_enabled(target_compiler.host) && builder.config.llvm_tools_enabled {
26-
// \`llvm-strip\` is used by rustc, which is actually just a symlink to \`llvm-objcopy\`,
27-
// so copy and rename \`llvm-objcopy\`.
28-
let src_exe = exe("llvm-objcopy", target_compiler.host);
29-
EOF
30-
3114
./x.py build --stage 1 library/std
3215
popd

0 commit comments

Comments
 (0)