[Mlir-commits] [llvm] [mlir] [mlir python] Port in-tree dialects to nanobind. (PR #119924)
Mehdi Amini
llvmlistbot at llvm.org
Fri Dec 20 17:08:32 PST 2024
================
@@ -661,6 +661,18 @@ function(add_mlir_python_extension libname extname)
NB_DOMAIN mlir
${ARG_SOURCES}
)
+
+ if (LLVM_COMPILER_IS_GCC_COMPATIBLE OR CLANG_CL)
+ # Avoids warnings from upstream nanobind.
+ target_compile_options(nanobind-static
+ PRIVATE
+ -Wno-cast-qual
+ -Wno-zero-length-array
+ -Wno-nested-anon-types
+ -Wno-c++98-compat-extra-semi
+ -Wno-covered-switch-default
+ )
+ endif()
----------------
joker-eph wrote:
Oh no this is compiling nanobind itself?
https://github.com/llvm/llvm-project/pull/119924
More information about the Mlir-commits
mailing list