Skip to content

Commit

Permalink
feat: enable link time optimization to improve performance (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking authored Dec 29, 2020
1 parent a00adaf commit 76332ab
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'dependencies': [
"<!(node -p \"require('node-addon-api').gyp\")"
],
'cflags!': [
'cflags': [
'-fno-exceptions',
'-Wextra',
'-Wall',
Expand All @@ -33,14 +33,19 @@
'-ansi',
'-pedantic',
'-O3',
'-flto',
],
'cflags_cc!': [
'cflags_cc': [
'-fno-exceptions',
'-Wextra',
'-Wall',
'-std=c++11',
'-pedantic',
'-O3',
'-flto',
],
'ldflags': [
'-flto'
],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'NO',
Expand All @@ -55,6 +60,7 @@
'-ansi',
'-pedantic',
'-O3',
'-flto'
],
'OTHER_CPLUSPLUSFLAGS': [
'-fno-exceptions',
Expand All @@ -63,6 +69,10 @@
'-std=c++11',
'-pedantic',
'-O3',
'-flto'
],
'OTHER_LDFLAGS': [
'-flto'
]
},
'msvs_settings': {
Expand Down

0 comments on commit 76332ab

Please sign in to comment.