This is an automated email from the ASF dual-hosted git repository.
paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new 66606795 chore: Use better debug detection in Meson (#790)
66606795 is described below
commit 666067952382ee604ce472010a7e72c745c451b2
Author: William Ayd <[email protected]>
AuthorDate: Fri Jun 20 10:40:02 2025 -0400
chore: Use better debug detection in Meson (#790)
This is a minor update per the suggestion in
https://github.com/mesonbuild/wrapdb/issues/2208#issuecomment-2989884271
---
meson.build | 2 +-
python/src/nanoarrow/meson.build | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index adb2d179..cbda1fd4 100644
--- a/meson.build
+++ b/meson.build
@@ -36,7 +36,7 @@ add_project_arguments(
language: 'cpp',
)
-if get_option('buildtype') in ['debug', 'debugoptimized']
+if get_option('debug')
add_project_arguments('-DNANOARROW_DEBUG', language: 'c')
add_project_arguments('-DNANOARROW_DEBUG', language: 'cpp')
endif
diff --git a/python/src/nanoarrow/meson.build b/python/src/nanoarrow/meson.build
index 1c38863c..16ab032e 100644
--- a/python/src/nanoarrow/meson.build
+++ b/python/src/nanoarrow/meson.build
@@ -66,7 +66,7 @@ cython_args = [
'--include-dir',
meson.current_build_dir(),
]
-if get_option('buildtype') in ['debug', 'debugoptimized']
+if get_option('debug')
cython_args += ['--gdb']
endif