Skip to content

Commit 4859aa4

Browse files
committed
Wrapper, JS:
- fix Ci, by using libcpp in macos build - fix binding.gyp build on mac
1 parent 776a4c2 commit 4859aa4

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

binding.gyp

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,25 @@
2020
"conditions": [
2121
[
2222
'OS == "mac"',
23-
{"cflags_cc!": ["-std=c++23"], "cflags_cc+": ["-std=c++20"]},
23+
{
24+
"xcode_settings": {
25+
"OTHER_CFLAGS+": [
26+
"-std=c++23",
27+
"-Wall",
28+
"-Wextra",
29+
"-Wno-unused-parameter",
30+
"-O3",
31+
"-Werror",
32+
"-Wpedantic",
33+
"-fexceptions",
34+
"-frtti",
35+
"-Wno-cast-function-type", # since nan.h -> node.h has some warnings regarding that
36+
"<!@(pkg-config oopetris-recordings --cflags-only-other)",
37+
"-static", # statically link this, as we do on windows ( it's the default as per node-gyp )
38+
"-I/usr/local/include", # this is and error with magic_enum in mac, but this small hack fixes it :)
39+
]
40+
}
41+
},
2442
],
2543
[
2644
'OS != "win"',

0 commit comments

Comments
 (0)