Skip to content

Commit

Permalink
Add Linux Aarch 64 support
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
grav committed May 14, 2024
1 parent 5428336 commit 6cdae60
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions deps/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ depsgen(
name = "prebuilt_protoc",
deps = [
":prebuilt_protoc_linux",
":prebuilt_protoc_linux_aarch64",
":prebuilt_protoc_osx",
":prebuilt_protoc_windows",
],
Expand Down Expand Up @@ -317,6 +318,21 @@ filegroup(
urls = ["https://github.com/google/protobuf/releases/download/v3.20.1/protoc-3.20.1-linux-x86_64.zip"],
)


proto_dependency(
name = "prebuilt_protoc_linux_aarch64",
build_file_content = """
filegroup(
name = "protoc",
srcs = ["bin/protoc"],
visibility = ["//visibility:public"],
)
""",
repository_rule = "http_archive",
sha256 = "3a0e900f9556fbcac4c3a913a00d07680f0fdf6b990a341462d822247b265562",
urls = ["https://github.com/google/protobuf/releases/download/v3.20.1/protoc-3.20.1-linux-aarch_64.zip"],
)

proto_dependency(
name = "prebuilt_protoc_osx",
build_file_content = """
Expand Down
3 changes: 3 additions & 0 deletions toolchain/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ genrule(
"@bazel_tools//src/conditions:windows": [
"@prebuilt_protoc_windows//:protoc",
],
"@bazel_tools//src/conditions:linux_aarch64": [
"@prebuilt_protoc_linux_aarch64//:protoc",
],
"//conditions:default": [
"@prebuilt_protoc_linux//:protoc",
],
Expand Down

0 comments on commit 6cdae60

Please sign in to comment.