Skip to content

Commit

Permalink
Use riscv32-unknown-linux-gnu for target on clang (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 8, 2021
1 parent 381741d commit 31f8d57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Expand Up @@ -1557,6 +1557,10 @@ impl Build {
cmd.args.push(
format!("--target={}", target.replace("riscv64gc", "riscv64")).into(),
);
} else if target.starts_with("riscv32gc-") {
cmd.args.push(
format!("--target={}", target.replace("riscv32gc", "riscv32")).into(),
);
} else if target.contains("uefi") {
if target.contains("x86_64") {
cmd.args.push("--target=x86_64-unknown-windows-gnu".into());
Expand Down

0 comments on commit 31f8d57

Please sign in to comment.