1
Fork 0

make -Csoft-float have an effect on all ARM targets

This commit is contained in:
Ralf Jung 2024-12-29 11:10:36 +01:00
parent fd19773d2f
commit 62bb35ab5d
2 changed files with 2 additions and 2 deletions

View file

@ -1320,7 +1320,7 @@ fn validate_commandline_args_with_session_available(sess: &Session) {
}
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);
} else {
// All `use_softfp` does is the equivalent of `-mfloat-abi` in GCC/clang, which only exists on ARM targets.