Skip to content

Commit 0034491

Browse files
committed
build: use c++20
1 parent 2df090b commit 0034491

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

binding.gyp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,22 @@
2424
"defines": [
2525
"NAPI_VERSION=<(napi_build_version)",
2626
],
27-
"cflags": [
28-
"-std=c++17"
29-
],
3027
"cflags_cc": [
31-
"-std=c++17"
28+
"-std=c++20"
3229
],
3330
"conditions": [
3431
["OS=='mac'", {
3532
"xcode_settings": {
3633
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES", # -fvisibility=hidden
37-
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
34+
"CLANG_CXX_LANGUAGE_STANDARD": "c++20",
3835
"MACOSX_DEPLOYMENT_TARGET": "10.9",
3936
},
4037
}],
4138
["OS=='win'", {
4239
"msvs_settings": {
4340
"VCCLCompilerTool": {
4441
"AdditionalOptions": [
45-
"/std:c++17",
42+
"/std:c++20",
4643
],
4744
"RuntimeLibrary": 0,
4845
},

0 commit comments

Comments
 (0)