We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 661800e commit 15fe24aCopy full SHA for 15fe24a
src/lib.rs
@@ -1588,9 +1588,11 @@ impl Build {
1588
if let Some(arch) = parts.next() {
1589
let arch = &arch[5..];
1590
cmd.args.push(("-march=rv".to_owned() + arch).into());
1591
- // ABI is always soft-float right now, update this when this is no longer the
1592
- // case:
1593
- if arch.starts_with("64") {
+ if target.contains("linux") && arch.starts_with("64") {
+ cmd.args.push("-mabi=lp64d".into());
+ } else if target.contains("linux") && arch.starts_with("32") {
1594
+ cmd.args.push("-mabi=ilp32d".into());
1595
+ } else if arch.starts_with("64") {
1596
cmd.args.push("-mabi=lp64".into());
1597
} else {
1598
cmd.args.push("-mabi=ilp32".into());
0 commit comments