File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ configure_file(
174
174
# disable all package setup and control it themselves.
175
175
#-------------------------------------------------------------------------------
176
176
177
+ set (MLIR_BINDINGS_PYTHON_NB_DOMAIN "mlir"
178
+ CACHE STRING "nanobind domain for MLIR python bindings." )
177
179
set (MLIR_ENABLE_BINDINGS_PYTHON 0 CACHE BOOL
178
180
"Enables building of Python bindings." )
179
181
set (MLIR_DETECT_PYTHON_ENV_PRIME_SEARCH 1 CACHE BOOL
Original file line number Diff line number Diff line change @@ -667,7 +667,7 @@ function(add_mlir_python_extension libname extname)
667
667
)
668
668
elseif (ARG_PYTHON_BINDINGS_LIBRARY STREQUAL "nanobind" )
669
669
nanobind_add_module (${libname}
670
- NB_DOMAIN mlir
670
+ NB_DOMAIN ${MLIR_BINDINGS_PYTHON_NB_DOMAIN}
671
671
FREE_THREADED
672
672
${ARG_SOURCES}
673
673
)
You can’t perform that action at this time.
0 commit comments