build: Support ARM build without FPU

This commit is contained in:
klzgrad 2020-07-29 21:43:37 +08:00
parent 5c5fc1acc8
commit 0363ba02dd

View File

@ -1333,7 +1333,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" ]