[Bazel] use execution paths for genrule inputs (#24981) IREE's shared genrule definitions use rootpath for source files and execpath for generated files so CMake can distinguish source and build directories. In Bazel, however, rootpath describes runtime runfiles paths, which break external IREE builds without legacy runfiles. Translate these to execpath in the Bazel macro so build actions can locate their inputs. Existing standalone IREE rules and CMake behavior remain unchanged. Assisted By: GPT-6-Astra
diff --git a/build_tools/bazel/iree_genrule.bzl b/build_tools/bazel/iree_genrule.bzl index b1699cf..1d79e79 100644 --- a/build_tools/bazel/iree_genrule.bzl +++ b/build_tools/bazel/iree_genrule.bzl
@@ -35,6 +35,8 @@ name = name, srcs = srcs, outs = outs, - cmd = cmd, + # CMake uses rootpath to distinguish source files from generated files. + # Bazel actions need execution paths for both, including external repos. + cmd = cmd.replace("$(rootpath ", "$(execpath "), **kwargs )