Skip to content

Commit cdae1c9

Browse files
committed
Set CG_CLIF_FORCE_GNU_AS for all rustc tests
1 parent c59226c commit cdae1c9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

scripts/setup_rust_fork.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#!/usr/bin/env bash
22
set -e
33

4+
# CG_CLIF_FORCE_GNU_AS will force usage of as instead of the LLVM backend of rustc as we
5+
# the LLVM backend isn't compiled in here.
6+
export CG_CLIF_FORCE_GNU_AS=1
7+
48
# Compiletest expects all standard library paths to start with /rustc/FAKE_PREFIX.
59
# CG_CLIF_STDLIB_REMAP_PATH_PREFIX will cause cg_clif's build system to pass
610
# --remap-path-prefix to handle this.
7-
# CG_CLIF_FORCE_GNU_AS will force usage of as instead of the LLVM backend of rustc as we
8-
# the LLVM backend isn't compiled in here.
9-
CG_CLIF_FORCE_GNU_AS=1 CG_CLIF_STDLIB_REMAP_PATH_PREFIX=/rustc/FAKE_PREFIX ./y.sh build
11+
CG_CLIF_STDLIB_REMAP_PATH_PREFIX=/rustc/FAKE_PREFIX ./y.sh build
1012

1113
echo "[SETUP] Rust fork"
1214
git clone https://github.com/rust-lang/rust.git || true

scripts/test_bootstrap.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +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-
# CG_CLIF_FORCE_GNU_AS will force usage of as instead of the LLVM backend of rustc as we
15-
# the LLVM backend isn't compiled in here.
16-
CG_CLIF_FORCE_GNU_AS=1 ./x.py build --stage 1 library/std
14+
./x.py build --stage 1 library/std
1715
popd

0 commit comments

Comments
 (0)