build: Support ARM build without FPU

This commit is contained in:
klzgrad 2020-07-29 21:43:37 +08:00
parent 00ac4c6824
commit 2508e58e4f

View File

@ -1251,7 +1251,7 @@ config("clang_revision") {
} }
config("compiler_arm_fpu") { 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" ] cflags = [ "-mfpu=$arm_fpu" ]
if (!arm_use_thumb) { if (!arm_use_thumb) {
cflags += [ "-marm" ] cflags += [ "-marm" ]