1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Avoid compilation failure in snapshot

This commit is contained in:
ignisf 2013-02-28 02:30:27 +02:00
parent dc02cd734f
commit 0a395f5f49
2 changed files with 29 additions and 0 deletions

View file

@ -27,6 +27,7 @@ task :checkout do
# The -fPIC flag is necessary when linking a shared library
# against the static libv8 on x86_64.
sh "patch -N -p1 -d vendor/v8 < patches/fPIC-on-x64.patch"
sh "patch -N -p1 -d vendor/v8 < patches/do-not-imply-vfp3-and-armv7.patch"
end
desc "compile v8 via the ruby extension mechanism"

View file

@ -0,0 +1,28 @@
diff --git a/build/common.gypi b/build/common.gypi
index e68ee15..198c2b7 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -160,7 +160,6 @@
[ 'v8_use_arm_eabi_hardfloat=="true"', {
'defines': [
'USE_EABI_HARDFLOAT=1',
- 'CAN_USE_VFP3_INSTRUCTIONS',
],
'target_conditions': [
['_toolset=="target"', {
diff --git a/build/standalone.gypi b/build/standalone.gypi
index 7145a16..f34a6c8 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -76,9 +76,9 @@
}],
],
# Default ARM variable settings.
- 'armv7%': 1,
+ 'armv7%': 0,
'arm_neon%': 0,
- 'arm_fpu%': 'vfpv3',
+ 'arm_fpu%': 'vfp',
},
'target_defaults': {
'default_configuration': 'Debug',