1 Star 0 Fork 30

chenhao/bazel

forked from src-openEuler/bazel 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
02-use-riscv64-jdk.patch 2.18 KB
一键复制 编辑 原始数据 按行查看 历史
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE b/src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE
index a507f04..3be7b84 100755
--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE
+++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE
@@ -83,6 +83,21 @@ maybe(
version = "11",
)
+# This must be kept in sync with the top-level WORKSPACE file.
+maybe(
+ remote_java_repository,
+ name = "remotejdk11_linux_riscv64",
+ exec_compatible_with = [
+ "@platforms//os:linux",
+ "@platforms//cpu:riscv64",
+ ],
+ strip_prefix = "java-11-openjdk",
+ urls = [
+ "file:///build/bazel/src/remotejdk11_linux_riscv64.tar.gz",
+ ],
+ version = "11",
+)
+
# This must be kept in sync with the top-level WORKSPACE file.
maybe(
remote_java_repository,
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.tmpl b/src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.tmpl
index 7040eae..b783308 100755
--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.tmpl
+++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.tmpl
@@ -66,6 +66,21 @@ maybe(
version = "11",
)
+# This must be kept in sync with the top-level WORKSPACE file.
+maybe(
+ remote_java_repository,
+ name = "remotejdk11_linux_riscv64",
+ exec_compatible_with = [
+ "@platforms//os:linux",
+ "@platforms//cpu:riscv64",
+ ],
+ strip_prefix = "java-11-openjdk",
+ urls = [
+ "file:///build/bazel/src/remotejdk11_linux_riscv64.tar.gz",
+ ],
+ version = "11",
+)
+
# This must be kept in sync with the top-level WORKSPACE file.
maybe(
remote_java_repository,
diff --git a/tools/jdk/BUILD.tools b/tools/jdk/BUILD.tools
index ecddfe0..85cb7b0 100755
--- a/tools/jdk/BUILD.tools
+++ b/tools/jdk/BUILD.tools
@@ -447,6 +447,7 @@ _JDKS = [
"remotejdk11_linux",
"remotejdk11_linux_ppc64le",
"remotejdk11_linux_s390x",
+ "remotejdk11_linux_riscv64",
"remotejdk15_macos",
"remotejdk15_macos_aarch64",
"remotejdk15_win",
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenhchenh/bazel.git
git@gitee.com:chenhchenh/bazel.git
chenhchenh
bazel
bazel
master

搜索帮助