Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index dbc02959db14cb330691c15771f6e07b8a6f33b2..8b5e35d6471a87d2b08a98116d9e502ce3930658 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -143,7 +143,6 @@ config("toolchain") { |
cflags = [] |
# TODO(jochen): Add support for arm subarchs, mips, mipsel, mips64el. |
- |
if (v8_target_arch == "arm") { |
defines += [ "V8_TARGET_ARCH_ARM" ] |
if (current_cpu == "arm") { |
@@ -170,8 +169,13 @@ config("toolchain") { |
"CAN_USE_ARMV7_INSTRUCTIONS", |
"CAN_USE_VFP3_INSTRUCTIONS", |
"CAN_USE_VFP32DREGS", |
- "USE_EABI_HARDFLOAT=0", |
] |
+ |
+ if (arm_float_abi == "hard") { |
slan
2016/03/29 17:03:23
Although this passes all the tryjobs, I've just di
Dirk Pranke
2016/03/29 21:03:40
I assume you mean "(when current_cpu is "x86" or "
slan
2016/03/29 23:45:08
Yes, that is what I meant! Thanks for seeing throu
|
+ defines += [ "USE_EABI_HARDFLOAT=1" ] |
+ } else if (arm_float_abi == "softfp") { |
+ defines += [ "USE_EABI_HARDFLOAT=0" ] |
+ } |
} |
# TODO(jochen): Add support for arm_test_noprobe. |
@@ -187,7 +191,7 @@ config("toolchain") { |
} |
if (v8_target_arch == "s390") { |
defines += [ "V8_TARGET_ARCH_S390" ] |
- } |
+ } |
if (v8_target_arch == "s390x") { |
defines += [ |
"V8_TARGET_ARCH_S390", |
@@ -200,7 +204,7 @@ config("toolchain") { |
if (v8_target_arch == "x64") { |
defines += [ "V8_TARGET_ARCH_X64" ] |
} |
- |
+ |
if (is_win) { |
defines += [ "WIN32" ] |
# TODO(jochen): Support v8_enable_prof. |