mirror of
https://github.com/github/codeql.git
synced 2026-06-10 23:41:09 +02:00
28 lines
798 B
Python
28 lines
798 B
Python
alias(
|
|
name = "resource-dir",
|
|
actual = select({"@platforms//os:" + os: "@swift-resource-dir-" + os for os in ("linux", "macos")}),
|
|
target_compatible_with = select({
|
|
"@platforms//os:windows": ["@platforms//:incompatible"],
|
|
"//conditions:default": [],
|
|
}),
|
|
visibility = ["//swift:__pkg__"],
|
|
)
|
|
|
|
[
|
|
sh_binary(
|
|
name = "update-" + os,
|
|
srcs = ["update.sh"],
|
|
args = [
|
|
"$(rlocationpath @swift_toolchain_%s)" % os,
|
|
"$(rlocationpath resource-dir-%s.zip)" % os,
|
|
],
|
|
data = [
|
|
"resource-dir-%s.zip" % os,
|
|
"@swift_toolchain_" + os,
|
|
],
|
|
target_compatible_with = ["@platforms//os:" + os],
|
|
deps = ["//misc/bazel:sh_runfiles"],
|
|
)
|
|
for os in ("linux", "macos")
|
|
]
|