Maksim Levental 392622d084
Revert "Revert "[mlir python] Add nanobind support (#119232)
Reverts revert #118517 after (hopefully) fixing builders
(https://github.com/llvm/llvm-zorg/pull/328,
https://github.com/llvm/llvm-zorg/pull/327)

This reverts commit 61bf308cf2fc32452f14861c102ace89f5f36fec.
2024-12-09 16:37:43 -05:00

26 lines
494 B
Plaintext

cc_library(
name = "nanobind",
srcs = glob(
[
"src/*.cpp",
],
exclude = ["src/nb_combined.cpp"],
),
defines = [
"NB_BUILD=1",
"NB_SHARED=1",
],
includes = ["include"],
textual_hdrs = glob(
[
"include/**/*.h",
"src/*.h",
],
),
visibility = ["//visibility:public"],
deps = [
"@robin_map",
"@rules_python//python/cc:current_py_cc_headers",
],
)