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
parent
commit
c7cd5ddf6c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/lib.rs

6
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());
}
}
}
}

Loading…
Cancel
Save