From 16d466eb96e6a205927c345035a9c8a2d98fd963 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Wed, 31 May 2023 16:14:49 -0400 Subject: [PATCH] build: add `-DNDEBUG=1` to clang flags --- node.gyp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/node.gyp b/node.gyp index a992981b77b94e..47bc5040608e47 100644 --- a/node.gyp +++ b/node.gyp @@ -464,6 +464,12 @@ 'NODE_WANT_INTERNALS=1', ], + 'conditions': [ + [ 'debug_node!="true"', { + 'defines': [ 'NDEBUG=1' ], + }], + ], + 'includes': [ 'node.gypi' ], @@ -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)"'