File tree 3 files changed +10
-8
lines changed
3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 57
57
# support. You'll need to write a target specification at least, and most
58
58
# likely, teach rustc about the C ABI of the target. Get in touch with the
59
59
# Rust team and file an issue if you need assistance in porting!
60
- #targets = "X86 ;ARM;AArch64; Mips;PowerPC;SystemZ;MSP430; Sparc;NVPTX;Hexagon "
60
+ #targets = "AArch64 ;ARM;Hexagon;MSP430; Mips;NVPTX; PowerPC;RISCV; Sparc;SystemZ;X86 "
61
61
62
62
# LLVM experimental targets to build support for. These targets are specified in
63
63
# the same format as above, but since these targets are experimental, they are
64
64
# not built by default and the experimental Rust compilation targets that depend
65
65
# on them will not work unless the user opts in to building them. By default the
66
- # `WebAssembly` and `RISCV` targets are enabled when compiling LLVM from scratch.
67
- #experimental-targets = "WebAssembly;RISCV "
66
+ # `WebAssembly` target is enabled when compiling LLVM from scratch.
67
+ #experimental-targets = "WebAssembly"
68
68
69
69
# Cap the number of parallel linker invocations when compiling LLVM.
70
70
# This can be useful when building LLVM with debug info, which significantly
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ pub struct Config {
75
75
pub llvm_link_shared : bool ,
76
76
pub llvm_clang_cl : Option < String > ,
77
77
pub llvm_targets : Option < String > ,
78
- pub llvm_experimental_targets : String ,
78
+ pub llvm_experimental_targets : Option < String > ,
79
79
pub llvm_link_jobs : Option < u32 > ,
80
80
pub llvm_version_suffix : Option < String > ,
81
81
pub llvm_use_linker : Option < String > ,
@@ -524,8 +524,7 @@ impl Config {
524
524
set ( & mut config. llvm_static_stdcpp , llvm. static_libstdcpp ) ;
525
525
set ( & mut config. llvm_link_shared , llvm. link_shared ) ;
526
526
config. llvm_targets = llvm. targets . clone ( ) ;
527
- config. llvm_experimental_targets = llvm. experimental_targets . clone ( )
528
- . unwrap_or_else ( || "WebAssembly;RISCV" . to_string ( ) ) ;
527
+ config. llvm_experimental_targets = llvm. experimental_targets . clone ( ) ;
529
528
config. llvm_link_jobs = llvm. link_jobs ;
530
529
config. llvm_version_suffix = llvm. version_suffix . clone ( ) ;
531
530
config. llvm_clang_cl = llvm. clang_cl . clone ( ) ;
Original file line number Diff line number Diff line change @@ -125,14 +125,17 @@ impl Step for Llvm {
125
125
} else {
126
126
match builder. config . llvm_targets {
127
127
Some ( ref s) => s,
128
- None => "X86 ;ARM;AArch64; Mips;PowerPC;SystemZ;MSP430; Sparc;NVPTX;Hexagon " ,
128
+ None => "AArch64 ;ARM;Hexagon;MSP430; Mips;NVPTX; PowerPC;RISCV; Sparc;SystemZ;X86 " ,
129
129
}
130
130
} ;
131
131
132
132
let llvm_exp_targets = if self . emscripten {
133
133
""
134
134
} else {
135
- & builder. config . llvm_experimental_targets [ ..]
135
+ match builder. config . llvm_experimental_targets {
136
+ Some ( ref s) => s,
137
+ None => "WebAssembly" ,
138
+ }
136
139
} ;
137
140
138
141
let assertions = if builder. config . llvm_assertions { "ON" } else { "OFF" } ;
You can’t perform that action at this time.
0 commit comments