Skip to content

Commit 16d466e

Browse files
committed
build: add -DNDEBUG=1 to clang flags
1 parent 8bc6e19 commit 16d466e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

node.gyp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,12 @@
464464
'NODE_WANT_INTERNALS=1',
465465
],
466466

467+
'conditions': [
468+
[ 'debug_node!="true"', {
469+
'defines': [ 'NDEBUG=1' ],
470+
}],
471+
],
472+
467473
'includes': [
468474
'node.gypi'
469475
],
@@ -815,6 +821,9 @@
815821
'msvs_disabled_warnings!': [4244],
816822

817823
'conditions': [
824+
[ 'debug_node!="true"', {
825+
'defines': [ 'NDEBUG=1' ],
826+
}],
818827
[ 'openssl_default_cipher_list!=""', {
819828
'defines': [
820829
'NODE_OPENSSL_DEFAULT_CIPHER_LIST="<(openssl_default_cipher_list)"'

0 commit comments

Comments
 (0)