Index: build/standalone.gypi |
diff --git a/build/standalone.gypi b/build/standalone.gypi |
index cdece8c57cb8f997c6d6d11549fb32dc83d0271b..f24d9f834105cd758680c4099ef195929d62afe4 100644 |
--- a/build/standalone.gypi |
+++ b/build/standalone.gypi |
@@ -58,6 +58,7 @@ |
'host_arch%': '<(host_arch)', |
'target_arch%': '<(target_arch)', |
'v8_target_arch%': '<(v8_target_arch)', |
+ 'werror%': '-Werror', |
'conditions': [ |
['(v8_target_arch=="arm" and host_arch!="arm") or \ |
(v8_target_arch=="x64" and host_arch!="x64")', { |
@@ -78,7 +79,7 @@ |
'conditions': [ |
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
'target_defaults': { |
- 'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter', |
+ 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
'-Wnon-virtual-dtor', '-pthread', '-fno-rtti', |
'-fno-exceptions', '-pedantic' ], |
'ldflags': [ '-pthread', ], |