Skip to content

Commit

Permalink
build: add -DNDEBUG=1 to clang flags
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Jun 13, 2023
1 parent 8bc6e19 commit 16d466e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,12 @@
'NODE_WANT_INTERNALS=1',
],

'conditions': [
[ 'debug_node!="true"', {
'defines': [ 'NDEBUG=1' ],
}],
],

'includes': [
'node.gypi'
],
Expand Down Expand Up @@ -815,6 +821,9 @@
'msvs_disabled_warnings!': [4244],

'conditions': [
[ 'debug_node!="true"', {
'defines': [ 'NDEBUG=1' ],
}],
[ 'openssl_default_cipher_list!=""', {
'defines': [
'NODE_OPENSSL_DEFAULT_CIPHER_LIST="<(openssl_default_cipher_list)"'
Expand Down

0 comments on commit 16d466e

Please sign in to comment.