Skip to content

Commit

Permalink
Merge pull request #429 from laanwj/2019_08_rv_correct_abi
Browse files Browse the repository at this point in the history
risc-v: Set ABI correctly for 32-bit targets
  • Loading branch information
alexcrichton committed Aug 8, 2019
2 parents f6f6c81 + b154938 commit c7cd5dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Expand Up @@ -1436,7 +1436,11 @@ impl Build {
cmd.args.push(("-march=rv".to_owned() + arch).into());
// ABI is always soft-float right now, update this when this is no longer the
// case:
cmd.args.push("-mabi=lp64".into());
if arch.starts_with("64") {
cmd.args.push("-mabi=lp64".into());
} else {
cmd.args.push("-mabi=ilp32".into());
}
}
}
}
Expand Down

0 comments on commit c7cd5dd

Please sign in to comment.