Skip to content

Commit 899fe02

Browse files
committed
undefine NB_ABORT_ON_LEAK
1 parent 79323c8 commit 899fe02

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

pandas/_libs/meson.build

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,15 @@ endforeach
160160

161161
subdir('window')
162162

163-
nanobind_dep = dependency('nanobind')
163+
cmake = import('cmake')
164+
opt_var = cmake.subproject_options()
165+
# the inclusion of the test directory from the top level
166+
# CMake defines NB_ABORT_ON_LEAK. We apparently have some leaks
167+
# detected on ubuntu, but don't want that to crash CI for now
168+
opt_var.append_compile_args('cpp', '-UNB_ABORT_ON_LEAK')
169+
nanobind_proj = cmake.subproject('nanobind', options: opt_var)
170+
nanobind_dep = nanobind_proj.dependency('nanobind-static')
171+
164172
py.extension_module(
165173
'new_vector',
166174
['new_vector.cpp'],

subprojects/nanobind.wrap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ url = https://github.com/wjakob/nanobind/
44
revision = v1.9.2
55
depth = 1
66
clone-recursive = true
7-
8-
[provide]
9-
nanobind = nanobind_static_dep

0 commit comments

Comments
 (0)