make -Csoft-float have an effect on all ARM targets
This commit is contained in:
parent
fd19773d2f
commit
62bb35ab5d
2 changed files with 2 additions and 2 deletions
|
@ -189,7 +189,7 @@ pub(crate) fn target_machine_factory(
|
||||||
let reloc_model = to_llvm_relocation_model(sess.relocation_model());
|
let reloc_model = to_llvm_relocation_model(sess.relocation_model());
|
||||||
|
|
||||||
let (opt_level, _) = to_llvm_opt_settings(optlvl);
|
let (opt_level, _) = to_llvm_opt_settings(optlvl);
|
||||||
let use_softfp = if sess.target.arch == "arm" && sess.target.abi == "eabihf" {
|
let use_softfp = if sess.target.arch == "arm" {
|
||||||
sess.opts.cg.soft_float
|
sess.opts.cg.soft_float
|
||||||
} else {
|
} else {
|
||||||
// `validate_commandline_args_with_session_available` has already warned about this being
|
// `validate_commandline_args_with_session_available` has already warned about this being
|
||||||
|
|
|
@ -1320,7 +1320,7 @@ fn validate_commandline_args_with_session_available(sess: &Session) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if sess.opts.cg.soft_float {
|
if sess.opts.cg.soft_float {
|
||||||
if sess.target.arch == "arm" && sess.target.abi == "eabihf" {
|
if sess.target.arch == "arm" {
|
||||||
sess.dcx().emit_warn(errors::SoftFloatDeprecated);
|
sess.dcx().emit_warn(errors::SoftFloatDeprecated);
|
||||||
} else {
|
} else {
|
||||||
// All `use_softfp` does is the equivalent of `-mfloat-abi` in GCC/clang, which only exists on ARM targets.
|
// All `use_softfp` does is the equivalent of `-mfloat-abi` in GCC/clang, which only exists on ARM targets.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue