Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit af7bb3e

Browse files
committed
Try binding.gyp from better-sqlite3
1 parent 72dae06 commit af7bb3e

File tree

2 files changed

+13
-32
lines changed

2 files changed

+13
-32
lines changed

binding.gyp

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,18 @@
2020
"vendor/superstring",
2121
"<!(node -e \"require('nan')\")",
2222
],
23-
'conditions': [
24-
['OS == "mac"', {
25-
'xcode_settings': {
26-
'MACOSX_DEPLOYMENT_TARGET': '10.9',
27-
},
28-
}],
29-
['OS == "win"', {
30-
"msvs_settings": {
31-
"VCCLCompilerTool": {
32-
"RuntimeLibrary": 3,
33-
"AdditionalOptions": ["/std:c++17"]
34-
},
35-
"ClCompile": {
36-
"LanguageStandard": "stdcpp17"
37-
}
38-
},
39-
"msbuild_settings": {
40-
"ClCompile": {
41-
"LanguageStandard": "stdcpp17"
42-
}
43-
}
44-
}]
45-
],
46-
"cflags": [
47-
"-std=c++17",
48-
],
49-
"cflags_cc": [
50-
"-std=c++17",
51-
],
52-
'xcode_settings': {
53-
'CLANG_CXX_LANGUAGE_STANDARD': 'c++17',
23+
"cflags_cc": ["-std=c++17"],
24+
"xcode_settings": {
25+
"MACOSX_DEPLOYMENT_TARGET": "10.7",
26+
"OTHER_CPLUSPLUSFLAGS": ["-std=c++17", "-stdlib=libc++"],
27+
},
28+
"msvs_settings": {
29+
"VCCLCompilerTool": {
30+
"AdditionalOptions": [
31+
"/std:c++17",
32+
],
33+
"RuntimeLibrary": 0,
34+
},
5435
},
5536
},
5637
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@types/node": "^18.14.6",
2323
"chai": "^4.3.7",
2424
"mocha": "^10.2.0",
25-
"node-gyp": "9.3.1",
25+
"node-gyp": "^8.4.1",
2626
"prebuild": "^11.0.4",
2727
"superstring": "https://github.com/pulsar-edit/superstring#node-api-upgrade",
2828
"tree-sitter-javascript": "https://github.com/tree-sitter/tree-sitter-javascript.git#master"

0 commit comments

Comments
 (0)