Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(941)

Unified Diff: build/config/compiler/BUILD.gn

Issue 371853007: Fix optional neon support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-missing-files
Patch Set: Rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/arm.gni ('k') | skia/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 456ab1958edeedcf6dd59b21420da7d2f46f8b31..09f8e6270904dfcf32a5ca15d05c00a8e1ae916c 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -134,7 +134,6 @@ config("compiler") {
if (!is_android_webview_build) {
cflags += [
"-march=$arm_arch",
- "-mfpu=$arm_fpu",
"-mfloat-abi=$arm_float_abi",
]
if (arm_tune != "") {
@@ -314,6 +313,14 @@ config("compiler") {
}
}
+config("compiler_arm_fpu") {
+ if (cpu_arch == "arm" && !is_android_webview_build) {
+ cflags = [
+ "-mfpu=$arm_fpu",
+ ]
+ }
+}
+
# runtime_library -------------------------------------------------------------
#
# Sets the runtime library and associated options.
« no previous file with comments | « build/config/arm.gni ('k') | skia/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698