Skip to content

Commit 513e9d3

Browse files
committed
fix: use Ofast instead of O3 in Clang/GCC
1 parent e64571b commit 513e9d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

binding.gyp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# Release Settings
1313
'Release': {
1414
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', 'NDEBUG' ],
15-
"cflags": [ "-fno-exceptions", "-O3" ],
16-
"cflags_cc": [ "-fno-exceptions", "-O3", "-std=c++2a" ],
15+
"cflags": [ "-fno-exceptions", "-Ofast" ],
16+
"cflags_cc": [ "-fno-exceptions", "-Ofast", "-std=c++2a" ],
1717
"xcode_settings": {
1818
'GCC_OPTIMIZATION_LEVEL': '3', # stop gyp from defaulting to -Os
1919
"CLANG_CXX_LIBRARY": "libc++",

0 commit comments

Comments
 (0)