Skip to content

Commit cb85a75

Browse files
committed
Bazel: patch apple_support to avoid registering its toolchain
This is done in order to avoid requiring a full Xcode installation, but still being able to use other `apple_support` facilities, like `universal_binary`.
1 parent e7886d0 commit cb85a75

File tree

5 files changed

+52
-1
lines changed

5 files changed

+52
-1
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ local_path_override(
1313

1414
# see https://registry.bazel.build/ for a list of available packages
1515

16-
bazel_dep(name = "apple_support", version = "1.15.1")
16+
bazel_dep(name = "apple_support", version = "1.15.1-codeql.1")
1717
bazel_dep(name = "platforms", version = "0.0.9")
1818
bazel_dep(name = "rules_go", version = "0.47.0")
1919
bazel_dep(name = "rules_pkg", version = "0.10.1")
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module(
2+
name = "apple_support",
3+
version = "1.15.1-codeql.1",
4+
bazel_compatibility = [">=6.0.0"],
5+
compatibility_level = 1,
6+
repo_name = "build_bazel_apple_support",
7+
)
8+
9+
bazel_dep(name = "bazel_skylib", version = "1.3.0")
10+
bazel_dep(name = "platforms", version = "0.0.9")
11+
12+
bazel_dep(
13+
name = "stardoc",
14+
version = "0.6.2",
15+
dev_dependency = True,
16+
repo_name = "io_bazel_stardoc",
17+
)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/MODULE.bazel b/MODULE.bazel
2+
index 6b06c3b..99bc7c6 100644
3+
--- a/MODULE.bazel
4+
+++ b/MODULE.bazel
5+
@@ -1,6 +1,6 @@
6+
module(
7+
name = "apple_support",
8+
- version = "0",
9+
+ version = "1.15.1-codeql.1",
10+
bazel_compatibility = [">=6.0.0"],
11+
compatibility_level = 1,
12+
repo_name = "build_bazel_apple_support",
13+
@@ -16,7 +16,3 @@ bazel_dep(
14+
repo_name = "io_bazel_stardoc",
15+
)
16+
17+
-apple_cc_configure = use_extension("//crosstool:setup.bzl", "apple_cc_configure_extension")
18+
-use_repo(apple_cc_configure, "local_config_apple_cc", "local_config_apple_cc_toolchains")
19+
-
20+
-register_toolchains("@local_config_apple_cc_toolchains//:all")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"integrity": "sha256-xLsrc2fEhDgjAK7nW+WYuS+EeJb7MbvSLzojRq32aoA=",
3+
"strip_prefix": "",
4+
"url": "https://github.com/bazelbuild/apple_support/releases/download/1.15.1/apple_support.1.15.1.tar.gz",
5+
"patches": {
6+
"module.patch": "sha256-K06B2W9t6nKcU8S5u6cWeNIdw/vGWWKAoJdGiI8CSS0="
7+
},
8+
"patch_strip": 1
9+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"versions": [
3+
"1.15.1-codeql.1"
4+
]
5+
}

0 commit comments

Comments
 (0)