Skip to content

Commit b2d8552

Browse files
[9.0.0] Patch rules_graalvm for Bazel 9 (bazelbuild#27635)
Fixing `bazel build --nobuild //:bazel-srcs` with Bazel@HEAD/9.0.0 See also: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5070 Caused by bazelbuild@eb1b3fc Closes bazelbuild#27632. PiperOrigin-RevId: 830940520 Change-Id: I97cd3a095d4b4215e6784e67867dabf748a9b2e9 Commit bazelbuild@b1630ee Co-authored-by: Yun Peng <pcloudy@google.com>
1 parent 95e9484 commit b2d8552

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

third_party/rules_graalvm_load_fix.patch

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,28 @@ commit b448d5aa1773405550db2777eb788b43f90c2f44
22
Author: Yun Peng <pcloudy@google.com>
33
Date: Tue Sep 23 15:58:11 2025 +0000
44

5-
Add load statements for JavaInfo
5+
Add load statements for JavaInfo and CcInfo
66

7+
diff --git a/MODULE.bazel b/MODULE.bazel
8+
index 4d0e3d6..c901a94 100644
9+
--- a/MODULE.bazel
10+
+++ b/MODULE.bazel
11+
@@ -53,7 +53,6 @@ bazel_dep(
12+
bazel_dep(
13+
name = "rules_cc",
14+
version = "0.0.9",
15+
- dev_dependency = True,
16+
)
17+
bazel_dep(
18+
name = "rules_python",
719
diff --git a/internal/native_image/common.bzl b/internal/native_image/common.bzl
8-
index dc6e3f7..c9a66bd 100644
20+
index dc6e3f7..6801ad2 100644
921
--- a/internal/native_image/common.bzl
1022
+++ b/internal/native_image/common.bzl
11-
@@ -1,5 +1,6 @@
23+
@@ -1,5 +1,7 @@
1224
"Defines common properties shared by modern and legacy Native Image rules."
13-
25+
26+
+load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
1427
+load("@rules_java//java/common:java_info.bzl", "JavaInfo")
1528
load(
1629
"//internal/native_image:builder.bzl",
@@ -27,3 +40,4 @@ index fb3c772..2b79234 100644
2740
load(
2841
"//internal/native_image:common.bzl",
2942
_BAZEL_CPP_TOOLCHAIN_TYPE = "BAZEL_CPP_TOOLCHAIN_TYPE",
43+

0 commit comments

Comments
 (0)