Skip to content

Commit 7a5e8bd

Browse files
committed
[RISCV] Enable CI.
1 parent 302ddef commit 7a5e8bd

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

config.toml.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
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.

src/bootstrap/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/ci/docker/dist-various-1/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ ENV TARGETS=$TARGETS,thumbv6m-none-eabi
102102
ENV TARGETS=$TARGETS,thumbv7m-none-eabi
103103
ENV TARGETS=$TARGETS,thumbv7em-none-eabi
104104
ENV TARGETS=$TARGETS,thumbv7em-none-eabihf
105+
ENV TARGETS=$TARGETS,riscv32imac-unknown-none-elf
105106

106107
ENV CC_mipsel_unknown_linux_musl=mipsel-openwrt-linux-gcc \
107108
CC_mips_unknown_linux_musl=mips-openwrt-linux-gcc \

src/tools/build-manifest/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)