Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 6bd3a5e

Browse files
committed
Build with C++11 flags
1 parent 28c2709 commit 6bd3a5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

binding.gyp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
],
1414
},
1515
'target_defaults': {
16+
'cflags_cc': ['-std=c++11'],
1617
'conditions': [
1718
['OS=="win"', {
1819
'msvs_disabled_warnings': [
@@ -21,6 +22,12 @@
2122
4506, # no definition for inline function
2223
],
2324
}],
25+
['OS=="mac"', {
26+
'xcode_settings': {
27+
'CLANG_CXX_LIBRARY': 'libc++',
28+
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11'
29+
}
30+
}]
2431
],
2532
},
2633
'targets': [

0 commit comments

Comments
 (0)