Skip to content

Commit

Permalink
build: lower c++ version to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Nov 10, 2024
1 parent 4652005 commit 079fe03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@
"NAPI_VERSION=<(napi_build_version)",
],
"cflags_cc": [
"-std=c++20"
"-std=c++17"
],
"conditions": [
["OS=='mac'", {
"xcode_settings": {
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES", # -fvisibility=hidden
"CLANG_CXX_LANGUAGE_STANDARD": "c++20",
"CLANG_CXX_LANGUAGE_STANDARD": "c++17",
"MACOSX_DEPLOYMENT_TARGET": "10.9",
},
}],
["OS=='win'", {
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": [
"/std:c++20",
"/std:c++17",
],
"RuntimeLibrary": 0,
},
Expand Down

0 comments on commit 079fe03

Please sign in to comment.