Browse Source
Merge pull request #429 from laanwj/2019_08_rv_correct_abi
risc-v: Set ABI correctly for 32-bit targets
wip-new-parallel
Alex Crichton
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
src/lib.rs
|
|
@ -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()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|