File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
# Compiletest expects all standard library paths to start with /rustc/FAKE_PREFIX.
5
5
# CG_CLIF_STDLIB_REMAP_PATH_PREFIX will cause cg_clif's build system to pass
6
6
# --remap-path-prefix to handle this.
7
- CG_CLIF_STDLIB_REMAP_PATH_PREFIX=/rustc/FAKE_PREFIX ./y.sh build
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
8
10
9
11
echo " [SETUP] Rust fork"
10
12
git clone https://github.com/rust-lang/rust.git || true
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ pub(crate) fn compile_global_asm(
140
140
) ;
141
141
142
142
// Assemble `global_asm`
143
- if false {
143
+ if option_env ! ( "CG_CLIF_FORCE_GNU_AS" ) . is_some ( ) {
144
144
let mut child = Command :: new ( & config. assembler )
145
145
. arg ( "-o" )
146
146
. arg ( & global_asm_object_file)
@@ -164,6 +164,7 @@ pub(crate) fn compile_global_asm(
164
164
. arg ( & global_asm_object_file)
165
165
. arg ( "-" )
166
166
. arg ( "-Abad_asm_style" )
167
+ . arg ( "-Zcodegen-backend=llvm" )
167
168
. stdin ( Stdio :: piped ( ) )
168
169
. spawn ( )
169
170
. expect ( "Failed to spawn `as`." ) ;
You can’t perform that action at this time.
0 commit comments