Skip to content

Commit 4d29bf6

Browse files
committed
build: use C++17, set macOS deployment target and libc++ for node-addon-api
1 parent 357305c commit 4d29bf6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

binding.gyp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
],
1818
"cflags!": ["-fno-exceptions"],
1919
"cflags_cc!": ["-fno-exceptions"],
20+
# Require modern C++ standard for node-addon-api
21+
"cflags_cc": ["-std=c++17"],
22+
"xcode_settings": {
23+
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
24+
"CLANG_CXX_LIBRARY": "libc++",
25+
"MACOSX_DEPLOYMENT_TARGET": "11.0"
26+
},
2027
"conditions": [
2128
['OS=="mac"', {
2229
'xcode_settings': {

0 commit comments

Comments
 (0)