Skip to content

Commit 31f8d57

Browse files
authored
Use riscv32-unknown-linux-gnu for target on clang (#631)
1 parent 381741d commit 31f8d57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1557,6 +1557,10 @@ impl Build {
15571557
cmd.args.push(
15581558
format!("--target={}", target.replace("riscv64gc", "riscv64")).into(),
15591559
);
1560+
} else if target.starts_with("riscv32gc-") {
1561+
cmd.args.push(
1562+
format!("--target={}", target.replace("riscv32gc", "riscv32")).into(),
1563+
);
15601564
} else if target.contains("uefi") {
15611565
if target.contains("x86_64") {
15621566
cmd.args.push("--target=x86_64-unknown-windows-gnu".into());

0 commit comments

Comments
 (0)