summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-18 09:06:50 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-18 09:06:50 +0000
commit9ecfde729ca11b59726403fe98f025c80b5c8fb5 (patch)
tree80b4a98aae432c47c810dda1ba33ae3407371448
parentf5fd1111ed06856b5cc8807caf9ca8ed1ad49996 (diff)
downloadchromium_src-9ecfde729ca11b59726403fe98f025c80b5c8fb5.zip
chromium_src-9ecfde729ca11b59726403fe98f025c80b5c8fb5.tar.gz
chromium_src-9ecfde729ca11b59726403fe98f025c80b5c8fb5.tar.bz2
Add support for the arm_float_abi flag to the GN build.
BUG= Review URL: https://codereview.chromium.org/141143008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245765 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--build/config/arm.gni17
-rwxr-xr-xbuild/gyp_chromium2
2 files changed, 16 insertions, 3 deletions
diff --git a/build/config/arm.gni b/build/config/arm.gni
index ead3cf7..8cba86a 100644
--- a/build/config/arm.gni
+++ b/build/config/arm.gni
@@ -6,8 +6,17 @@ declare_args() {
# Version of the ARM processor when compiling on ARM. Ignored on non-ARM
# platforms.
arm_version = 7
+
+ # The ARM floating point mode. This is either the string "hard", "soft", or
+ # "softfp". An empty string means to use the default one for the arm_version.
+ arm_float_abi = ""
}
+assert(arm_float_abi == "" ||
+ arm_float_abi == "hard" ||
+ arm_float_abi == "soft" ||
+ arm_float_abi == "softfp")
+
if (is_android) {
arm_use_neon = false
# Our version of arm_neon_optional from common.gypi. This is not used in the
@@ -21,7 +30,9 @@ if (is_android) {
if (arm_version == 6) {
arm_arch = "armv6"
arm_tune = ""
- arm_float_abi = "softfp"
+ if (arm_float_abi == "") {
+ arm_float_abi = "softfp"
+ }
arm_fpu = "vfp"
# Thumb is a reduced instruction set available on some ARM processors that
# has increased code density.
@@ -30,7 +41,9 @@ if (arm_version == 6) {
} else if (arm_version == 7) {
arm_arch = "armv7-a"
arm_tune = "cortex-a8"
- arm_float_abi = "softfp"
+ if (arm_float_abi == "") {
+ arm_float_abi = "softfp"
+ }
arm_use_thumb = true
if (arm_use_neon) {
diff --git a/build/gyp_chromium b/build/gyp_chromium
index 6c55755..3ee04aa 100755
--- a/build/gyp_chromium
+++ b/build/gyp_chromium
@@ -201,7 +201,7 @@ def GetArgsStringForGN(supplemental_files):
gn_args += ' ' + i[2]
# These string arguments get passed directly as GN strings.
- for v in ['android_src', 'windows_sdk_path']:
+ for v in ['android_src', 'windows_sdk_path', 'arm_float_abi']:
if v in vars_dict:
gn_args += ' ' + v + '=' + EscapeStringForGN(vars_dict[v])