Skip to content

Commit

Permalink
Explicitly pass NDEBUG down
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Sep 24, 2024
1 parent ab81737 commit 4d2b736
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@
"DUCKDB_EXTENSION_ICU_LINKED",
"DUCKDB_EXTENSION_JSON_LINKED",
"DUCKDB_EXTENSION_AUTOLOAD_DEFAULT=1",
"DUCKDB_EXTENSION_AUTOINSTALL_DEFAULT=1"
"DUCKDB_EXTENSION_AUTOINSTALL_DEFAULT=1",
"NDEBUG"
],
"cflags_cc": [
"-frtti",
Expand Down
3 changes: 1 addition & 2 deletions vendor.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

# Autoloading is on by default for node distributions
defines.extend(['DUCKDB_EXTENSION_AUTOLOAD_DEFAULT=1', 'DUCKDB_EXTENSION_AUTOINSTALL_DEFAULT=1'])
defines.extend(['NDEBUG'])

if os.environ.get('DUCKDB_NODE_BUILD_CACHE') == '1' and os.path.isfile(cache_file):
with open(cache_file, 'rb') as f:
Expand Down Expand Up @@ -79,8 +80,6 @@ def find_library_path(libdir, libname):
cflags += ['-g']
if '-O0' in os.environ['DUCKDB_NODE_CFLAGS']:
cflags += ['-O0']
if '-DNDEBUG' in os.environ['DUCKDB_NODE_CFLAGS']:
defines += ['NDEBUG']

if 'DUCKDB_NODE_BUILD_CACHE' in os.environ:
cache = {
Expand Down

0 comments on commit 4d2b736

Please sign in to comment.