summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2014-10-11 02:17:49 +0400
committerFedor Indutny <fedor@indutny.com>2014-10-12 02:05:02 +0400
commite43c109891dcdce3da30de1baee1d2c97cabfcd9 (patch)
tree9d98a70fb4edc370b333eb0e29430199d121d0ed /common.gypi
parent50839a042edba3466d8a013c1814a076f1cc8318 (diff)
downloadandroid-node-v8-e43c109891dcdce3da30de1baee1d2c97cabfcd9.tar.gz
android-node-v8-e43c109891dcdce3da30de1baee1d2c97cabfcd9.tar.bz2
android-node-v8-e43c109891dcdce3da30de1baee1d2c97cabfcd9.zip
gyp: build with gnu++0x for the sake of new v8
The new v8 doesn't build on non gnu++0x, set it to a proper value for all systems.
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi8
1 files changed, 7 insertions, 1 deletions
diff --git a/common.gypi b/common.gypi
index 8886b74392..463648b8a4 100644
--- a/common.gypi
+++ b/common.gypi
@@ -173,7 +173,7 @@
}],
[ 'OS in "linux freebsd openbsd solaris android"', {
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
- 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
+ 'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++0x' ],
'ldflags': [ '-rdynamic' ],
'target_conditions': [
['_type=="static_library"', {
@@ -237,6 +237,12 @@
['target_arch=="x64"', {
'xcode_settings': {'ARCHS': ['x86_64']},
}],
+ ['clang==1', {
+ 'xcode_settings': {
+ 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
+ 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x', # -std=gnu++0x
+ },
+ }],
],
}],
['OS=="freebsd" and node_use_dtrace=="true"', {