mirror of
https://github.com/rubyjs/libv8
synced 2023-03-27 23:21:48 -04:00
Add patches that allow compiling under GCC4.8
This commit is contained in:
parent
b373e2fa19
commit
552afe2fcd
2 changed files with 53 additions and 0 deletions
25
patches/disable-building-tests.patch
Normal file
25
patches/disable-building-tests.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index 0cdae4b..2bf8aa5 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -153,7 +153,7 @@ ANDROID_ARCHES = android_ia32 android_arm
|
||||
# List of files that trigger Makefile regeneration:
|
||||
GYPFILES = build/all.gyp build/common.gypi build/standalone.gypi \
|
||||
preparser/preparser.gyp samples/samples.gyp src/d8.gyp \
|
||||
- test/cctest/cctest.gyp tools/gyp/v8.gyp
|
||||
+ tools/gyp/v8.gyp
|
||||
|
||||
# Generates all combinations of ARCHES and MODES, e.g. "ia32.release".
|
||||
BUILDS = $(foreach mode,$(MODES),$(addsuffix .$(mode),$(ARCHES)))
|
||||
diff --git a/build/all.gyp b/build/all.gyp
|
||||
index 4b2fe52..9885678 100644
|
||||
--- a/build/all.gyp
|
||||
+++ b/build/all.gyp
|
||||
@@ -11,7 +11,6 @@
|
||||
'../preparser/preparser.gyp:*',
|
||||
'../samples/samples.gyp:*',
|
||||
'../src/d8.gyp:d8',
|
||||
- '../test/cctest/cctest.gyp:*',
|
||||
],
|
||||
}
|
||||
]
|
28
patches/gcc48-wno-unused-local-typedefs.patch
Normal file
28
patches/gcc48-wno-unused-local-typedefs.patch
Normal file
|
@ -0,0 +1,28 @@
|
|||
diff --git a/build/common.gypi b/build/common.gypi
|
||||
index 3a59639..365178a 100644
|
||||
--- a/build/common.gypi
|
||||
+++ b/build/common.gypi
|
||||
@@ -376,7 +376,8 @@
|
||||
}],
|
||||
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', {
|
||||
'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
|
||||
- '-Wnon-virtual-dtor', '-Woverloaded-virtual' ],
|
||||
+ '-Wnon-virtual-dtor', '-Woverloaded-virtual',
|
||||
+ '-Wno-unused-local-typedefs' ],
|
||||
}],
|
||||
['OS=="linux" and v8_enable_backtrace==1', {
|
||||
# Support for backtrace_symbols.
|
||||
diff --git a/build/standalone.gypi b/build/standalone.gypi
|
||||
index 125c5bf..32eaf85 100644
|
||||
--- a/build/standalone.gypi
|
||||
+++ b/build/standalone.gypi
|
||||
@@ -98,7 +98,8 @@
|
||||
'target_defaults': {
|
||||
'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
|
||||
'-Wnon-virtual-dtor', '-pthread', '-fno-rtti',
|
||||
- '-fno-exceptions', '-pedantic' ],
|
||||
+ '-fno-exceptions', '-pedantic',
|
||||
+ '-Wno-unused-local-typedefs' ],
|
||||
'ldflags': [ '-pthread', ],
|
||||
'conditions': [
|
||||
[ 'OS=="linux"', {
|
Loading…
Add table
Reference in a new issue