From 442fb51d23b023dbf879133c8cb5f7afe88ea01d 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node.gyp b/node.gyp index 0db48c18dc1186..6ac0dd4710aafd 100644 --- a/node.gyp +++ b/node.gyp @@ -462,6 +462,7 @@ 'NODE_ARCH="<(target_arch)"', 'NODE_PLATFORM="<(OS)"', 'NODE_WANT_INTERNALS=1', + 'NDEBUG=1', ], 'includes': [ @@ -808,6 +809,7 @@ # Warn when using deprecated V8 APIs. 'V8_DEPRECATION_WARNINGS=1', 'NODE_OPENSSL_SYSTEM_CERT_PATH="<(openssl_system_ca_path)"', + 'NDEBUG=1', ], # - "C4244: conversion from 'type1' to 'type2', possible loss of data"