File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6161# the same format as above, but since these targets are experimental, they are
6262# not built by default and the experimental Rust compilation targets that depend
6363# on them will not work unless the user opts in to building them. By default the
64- # `WebAssembly` target is enabled when compiling LLVM from scratch.
64+ # `WebAssembly` and `RISCV` targets are enabled when compiling LLVM from scratch.
6565# experimental-targets = "WebAssembly;RISCV"
6666
6767# Cap the number of parallel linker invocations when compiling LLVM.
Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ impl Config {
507507 set ( & mut config. llvm_link_shared , llvm. link_shared ) ;
508508 config. llvm_targets = llvm. targets . clone ( ) ;
509509 config. llvm_experimental_targets = llvm. experimental_targets . clone ( )
510- . unwrap_or ( "WebAssembly" . to_string ( ) ) ;
510+ . unwrap_or ( "WebAssembly;RISCV " . to_string ( ) ) ;
511511 config. llvm_link_jobs = llvm. link_jobs ;
512512 config. llvm_clang_cl = llvm. clang_cl . clone ( ) ;
513513 }
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ ENV TARGETS=$TARGETS,thumbv6m-none-eabi
102102ENV TARGETS=$TARGETS,thumbv7m-none-eabi
103103ENV TARGETS=$TARGETS,thumbv7em-none-eabi
104104ENV TARGETS=$TARGETS,thumbv7em-none-eabihf
105+ ENV TARGETS=$TARGETS,riscv32imac-unknown-none-elf
105106
106107ENV CC_mipsel_unknown_linux_musl=mipsel-openwrt-linux-gcc \
107108 CC_mips_unknown_linux_musl=mips-openwrt-linux-gcc \
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ static TARGETS: &'static [&'static str] = &[
8989 "powerpc64-unknown-linux-gnu" ,
9090 "powerpc64le-unknown-linux-gnu" ,
9191 "powerpc64le-unknown-linux-musl" ,
92+ "riscv32imac-unknown-none-elf" ,
9293 "s390x-unknown-linux-gnu" ,
9394 "sparc-unknown-linux-gnu" ,
9495 "sparc64-unknown-linux-gnu" ,
You can’t perform that action at this time.
0 commit comments