File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
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 @@ -659,11 +659,11 @@ function(add_mlir_python_extension libname extname)
659
659
endif ()
660
660
661
661
# Avoids domain conflict with nanobind by specifying NB_DOMAIN.
662
- if (NB_DOMAIN )
663
- set (_nb_domain ${NB_DOMAIN } )
662
+ if (MLIR_BINDINGS_PYTHON_NB_DOMAIN )
663
+ set (_nb_domain ${MLIR_BINDINGS_PYTHON_NB_DOMAIN } )
664
664
else ()
665
665
set (_nb_domain "mlir" )
666
- endif ()
666
+ endif ()
667
667
668
668
# The actual extension library produces a shared-object or DLL and has
669
669
# sources that must be compiled in accordance with pybind11 needs (RTTI and
You can’t perform that action at this time.
0 commit comments