[Mlir-commits] [mlir] [mlir][Python] Generate type stubs for dialect extensions (PR #236657)

Maksim Levental llvmlistbot at llvm.org
Thu Oct 29 15:47:51 PDT 2026


================
@@ -114,12 +114,13 @@ endfunction()
 #   IMPORT_PATHS: List of paths to add to PYTHONPATH for stubgen.
 #   PATTERN_FILE: (Optional) Pattern file (see https://nanobind.readthedocs.io/en/latest/typing.html#pattern-files).
 #   VERBOSE: Emit logging/status messages during stub generation (default: OFF).
+#   TARGET_NAME: Optional custom target name, instead of concatenating all deps.
 # Outputs:
 #   NB_STUBGEN_CUSTOM_TARGET: The target corresponding to generation which other targets can depend on.
 function(mlir_generate_type_stubs)
   cmake_parse_arguments(ARG
     "VERBOSE"
-    "MODULE_NAME;OUTPUT_DIR;PATTERN_FILE"
+    "MODULE_NAME;OUTPUT_DIR;PATTERN_FILE;TARGET_NAME"
----------------
makslevental wrote:

this is a good fix for https://github.com/llvm/llvm-project/pull/235462#issuecomment-6429629022

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


More information about the Mlir-commits mailing list