diff --git a/utils/bazel/llvm-project-overlay/llvm/tblgen.bzl b/utils/bazel/llvm-project-overlay/llvm/tblgen.bzl --- a/utils/bazel/llvm-project-overlay/llvm/tblgen.bzl +++ b/utils/bazel/llvm-project-overlay/llvm/tblgen.bzl @@ -35,7 +35,7 @@ tblgen_args: Extra arguments string to pass to the tblgen binary. **kwargs: Keyword arguments to pass to subsidiary cc_library() rule. """ - llvm_project_execroot_path = Label("//llvm:tblgen.bzl", relative_to_caller_repository = False).workspace_root + llvm_project_execroot_path = Label("//llvm:tblgen.bzl").workspace_root if td_file not in td_srcs: td_srcs += [td_file] diff --git a/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl b/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl --- a/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl +++ b/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl @@ -333,10 +333,7 @@ **kwargs: Extra keyword arguments to pass to all generated rules. """ - llvm_project_execroot_path = Label( - "//mlir:tblgen.bzl", - relative_to_caller_repository = False, - ).workspace_root + llvm_project_execroot_path = Label("//mlir:tblgen.bzl").workspace_root # TODO(gcmn): Update callers to td_library and explicit includes and drop # this hardcoded include.