File tree 2 files changed +2
-2
lines changed
rustc_codegen_llvm/src/back
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ pub(crate) fn target_machine_factory(
189
189
let reloc_model = to_llvm_relocation_model ( sess. relocation_model ( ) ) ;
190
190
191
191
let ( opt_level, _) = to_llvm_opt_settings ( optlvl) ;
192
- let use_softfp = if sess. target . arch == "arm" && sess . target . abi == "eabihf" {
192
+ let use_softfp = if sess. target . arch == "arm" {
193
193
sess. opts . cg . soft_float
194
194
} else {
195
195
// `validate_commandline_args_with_session_available` has already warned about this being
Original file line number Diff line number Diff line change @@ -1320,7 +1320,7 @@ fn validate_commandline_args_with_session_available(sess: &Session) {
1320
1320
}
1321
1321
1322
1322
if sess. opts . cg . soft_float {
1323
- if sess. target . arch == "arm" && sess . target . abi == "eabihf" {
1323
+ if sess. target . arch == "arm" {
1324
1324
sess. dcx ( ) . emit_warn ( errors:: SoftFloatDeprecated ) ;
1325
1325
} else {
1326
1326
// All `use_softfp` does is the equivalent of `-mfloat-abi` in GCC/clang, which only exists on ARM targets.
You can’t perform that action at this time.
0 commit comments