[llvm] [mlir] [mlir python] Port in-tree dialects to nanobind. (PR #119924)

Maksim Levental via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 20 09:38:26 PST 2024


makslevental wrote:

I got it - you need to fiddle with nanobind's library target itself https://github.com/wjakob/nanobind/blob/b7c4f1abfcab9cc5a8f0ef758926d92ff5eac3a3/cmake/nanobind-config.cmake#L358

which for us would look like 

```
target_compile_options(nanobind-static
  PRIVATE
  -Wno-cast-qual
  -Wno-zero-length-array
 ...
)
```

https://github.com/llvm/llvm-project/pull/119924


More information about the llvm-commits mailing list