Skip to content

Commit b1d0313

Browse files
committed
ci: try fixing include dir
1 parent 6a05bad commit b1d0313

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

binding.gyp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"target_name": "winicon",
55
"sources": ["src/winicon.cc"],
66
"include_dirs": [
7-
"<!(node -p \"require('node-addon-api').include\")"
7+
"<!@(node -p \"require('node-addon-api').include\")",
88
],
99
"dependencies": [
1010
"<!(node -p \"require('node-addon-api').gyp\")"
1111
],
12-
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"],
12+
"defines": ["NAPI_CPP_EXCEPTIONS"],
1313
"conditions": [
1414
["OS=='win'", {
1515
"defines": ["WIN32"],
@@ -20,7 +20,14 @@
2020
"Gdi32.lib"
2121
]
2222
}]
23-
]
23+
],
24+
"msvs_settings": {
25+
"VCCLCompilerTool": {
26+
"AdditionalOptions": ["/std:c++17"]
27+
}
28+
},
29+
"cflags!": ["-fno-exceptions"],
30+
"cflags_cc!": ["-fno-exceptions"],
2431
}
2532
]
2633
}

scripts/build.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ try {
88
await $`yarn prebuildify --strip --napi --arch x64`;
99
} catch (err) {
1010
console.error('Build failed:', err);
11+
throw err;
1112
}

0 commit comments

Comments
 (0)