Skip to content

Commit 2cf403e

Browse files
committed
JS wrapper: fix mac build
1 parent 9a014ed commit 2cf403e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

binding.gyp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
"-Wno-cast-function-type", # since nan.h -> node.h has some warnings regarding that
1717
"<!@(pkg-config oopetris-recordings --cflags-only-other)",
1818
],
19+
"conditions": [
20+
[
21+
'OS == "mac"',
22+
{"cflags_cc!": ["-std=c++23"], "cflags_cc+": ["-std=c++20"]},
23+
]
24+
],
1925
"defines": ["V8_DEPRECATION_WARNINGS=1"],
2026
"sources": ["src/cpp/wrapper.cpp"],
2127
"include_dirs": [

0 commit comments

Comments
 (0)