From c43e9b9ec89a04bb4b986f3b3c0c8ac4247471c3 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Wed, 29 Jul 2020 21:43:37 +0800 Subject: [PATCH] build: Support ARM build without FPU --- src/build/config/compiler/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/config/compiler/BUILD.gn b/src/build/config/compiler/BUILD.gn index b1f7c81a32..ad6728dfff 100644 --- a/src/build/config/compiler/BUILD.gn +++ b/src/build/config/compiler/BUILD.gn @@ -1443,7 +1443,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" ]