Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f645d20

Browse files
authored
[bazel] Add rules_shell for sh_binary rule (#158365)
This is required for the upcoming bazel 9.x release where this rule is no longer automatically available.
1 parent 86bcd1c commit f645d20

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

utils/bazel/WORKSPACE

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,17 @@ python_register_toolchains(
199199
name = "python_3_12",
200200
python_version = "3.12",
201201
)
202+
203+
maybe(
204+
http_archive,
205+
name = "rules_shell",
206+
sha256 = "e6b87c89bd0b27039e3af2c5da01147452f240f75d505f5b6880874f31036307",
207+
strip_prefix = "rules_shell-0.6.1",
208+
url = "https://github.com/bazelbuild/rules_shell/releases/download/v0.6.1/rules_shell-v0.6.1.tar.gz",
209+
)
210+
211+
load("@rules_shell//shell:repositories.bzl", "rules_shell_dependencies", "rules_shell_toolchains")
212+
213+
rules_shell_dependencies()
214+
215+
rules_shell_toolchains()

utils/bazel/llvm-project-overlay/llvm/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
66
load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
77
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
88
load("@rules_python//python:defs.bzl", "py_binary")
9+
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
910
load("//mlir:tblgen.bzl", "gentbl_cc_library", "gentbl_filegroup", "td_library")
1011
load(":binary_alias.bzl", "binary_alias")
1112
load(":config.bzl", "llvm_config_defines")

0 commit comments

Comments
 (0)