build: fix g++ 4.8 build, disable -Werror
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 6 Mar 2014 04:11:07 +0000 (05:11 +0100)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Sun, 23 Mar 2014 23:11:08 +0000 (16:11 -0700)
Turn off -Werror when building V8, it hits -Werror=unused-local-typedefs
with g++ 4.8.  The warning itself is harmless so don't abort the build.

This was originally implemented in commit d2ab314e back in 2011 but the
build process has gone through a few iterations since then, that change
no longer works.

common.gypi
node.gyp

index 4193b5a..8adafe3 100644 (file)
@@ -1,5 +1,6 @@
 {
   'variables': {
+    'werror': '',                    # Turn off -Werror in V8 build.
     'visibility%': 'hidden',         # V8's visibility setting
     'target_arch%': 'ia32',          # set v8's target architecture
     'host_arch%': 'ia32',            # set v8's host architecture
index c24c230..f6586c4 100644 (file)
--- a/node.gyp
+++ b/node.gyp
@@ -1,9 +1,6 @@
 {
   'variables': {
     'v8_use_snapshot%': 'true',
-    # Turn off -Werror in V8
-    # See http://codereview.chromium.org/8159015
-    'werror': '',
     'node_use_dtrace%': 'false',
     'node_use_etw%': 'false',
     'node_use_perfctr%': 'false',