Skip to content

Commit 6cdae60

Browse files
committed
Add Linux Aarch 64 support
WIP
1 parent 5428336 commit 6cdae60

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

deps/BUILD.bazel

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ depsgen(
5858
name = "prebuilt_protoc",
5959
deps = [
6060
":prebuilt_protoc_linux",
61+
":prebuilt_protoc_linux_aarch64",
6162
":prebuilt_protoc_osx",
6263
":prebuilt_protoc_windows",
6364
],
@@ -317,6 +318,21 @@ filegroup(
317318
urls = ["https://github.com/google/protobuf/releases/download/v3.20.1/protoc-3.20.1-linux-x86_64.zip"],
318319
)
319320

321+
322+
proto_dependency(
323+
name = "prebuilt_protoc_linux_aarch64",
324+
build_file_content = """
325+
filegroup(
326+
name = "protoc",
327+
srcs = ["bin/protoc"],
328+
visibility = ["//visibility:public"],
329+
)
330+
""",
331+
repository_rule = "http_archive",
332+
sha256 = "3a0e900f9556fbcac4c3a913a00d07680f0fdf6b990a341462d822247b265562",
333+
urls = ["https://github.com/google/protobuf/releases/download/v3.20.1/protoc-3.20.1-linux-aarch_64.zip"],
334+
)
335+
320336
proto_dependency(
321337
name = "prebuilt_protoc_osx",
322338
build_file_content = """

toolchain/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ genrule(
3636
"@bazel_tools//src/conditions:windows": [
3737
"@prebuilt_protoc_windows//:protoc",
3838
],
39+
"@bazel_tools//src/conditions:linux_aarch64": [
40+
"@prebuilt_protoc_linux_aarch64//:protoc",
41+
],
3942
"//conditions:default": [
4043
"@prebuilt_protoc_linux//:protoc",
4144
],

0 commit comments

Comments
 (0)