arm: build: Support ARM build without FPU

master
klzgrad 2020-07-29 21:43:37 +08:00
parent 1f26e8910e
commit efb2fd0cfc
1 changed files with 1 additions and 1 deletions

View File

@ -1757,7 +1757,7 @@ config("rustc_revision") {
}
config("compiler_arm_fpu") {
if (current_cpu == "arm" && !is_ios && !is_nacl) {
if (current_cpu == "arm" && !is_ios && !is_nacl && arm_fpu != "") {
cflags = [ "-mfpu=$arm_fpu" ]
if (!arm_use_thumb) {
cflags += [ "-marm" ]