Index: build/standalone.gypi |
diff --git a/build/standalone.gypi b/build/standalone.gypi |
index a52c8946fadfd89bf6509f802f8f965b1183d607..60747c37fd0db10cb4f91babf3f776c36086e2a9 100644 |
--- a/build/standalone.gypi |
+++ b/build/standalone.gypi |
@@ -30,6 +30,7 @@ |
{ |
'variables': { |
'component%': 'static_library', |
+ 'clang%': 0, |
'visibility%': 'hidden', |
'v8_enable_backtrace%': 0, |
'msvs_multi_core_compile%': '1', |
@@ -69,6 +70,13 @@ |
'target_arch%': '<(target_arch)', |
'v8_target_arch%': '<(v8_target_arch)', |
'werror%': '-Werror', |
+ |
+ # .gyp files or targets should set v8_code to 1 if they build V8 specific |
+ # code, as opposed to external code. This variable is used to control such |
+ # things as the set of warnings to enable, and whether warnings are treated |
+ # as errors. |
+ 'v8_code%': 0, |
+ |
'conditions': [ |
['(v8_target_arch=="arm" and host_arch!="arm") or \ |
(v8_target_arch=="a64" and host_arch!="a64") or \ |
@@ -79,6 +87,17 @@ |
}, { |
'want_separate_host_toolset': 0, |
}], |
+ ['OS == "win"', { |
+ 'os_posix%': 0, |
+ }, { |
+ 'os_posix%': 1, |
+ }], |
+ ['(v8_target_arch=="ia32" or v8_target_arch=="x64") and \ |
+ (OS=="linux" or OS=="mac")', { |
+ 'v8_enable_gdbjit%': 1, |
+ }, { |
+ 'v8_enable_gdbjit%': 0, |
+ }], |
], |
# Default ARM variable settings. |
'armv7%': 'default', |
@@ -88,6 +107,9 @@ |
'arm_thumb': 'default', |
}, |
'target_defaults': { |
+ 'variables': { |
+ 'v8_code%': '<(v8_code)', |
+ }, |
'default_configuration': 'Debug', |
'configurations': { |
'Debug': { |
@@ -97,6 +119,29 @@ |
# Xcode insists on this empty entry. |
}, |
}, |
+ 'target_conditions': [ |
+ ['v8_code == 0', { |
+ 'conditions': [ |
+ ['os_posix == 1 and OS != "mac"', { |
+ 'cflags!': [ |
+ '-Werror', |
+ ], |
+ }], |
+ ['OS == "mac"', { |
+ 'xcode_settings': { |
+ 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror |
+ }, |
+ }], |
+ ['OS == "win"', { |
+ 'msvs_settings': { |
+ 'VCCLCompilerTool': { |
+ 'WarnAsError': 'false', |
+ }, |
+ }, |
+ }], |
+ ], |
+ }], |
+ ], |
}, |
'conditions': [ |
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |