Include assembly optimizations in Bazel builds on Linux-aarch64.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Change-Id: Ieb403b6651d445948abef48d7432fd248294284f
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/47084
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
grpc-202302
Piotr Sikora 4 years ago committed by CQ bot account: commit-bot@chromium.org
parent fcec391b0e
commit 16c76acc78
  1. 10
      util/BUILD.toplevel

@ -18,6 +18,7 @@ load(
"crypto_headers",
"crypto_internal_headers",
"crypto_sources",
"crypto_sources_linux_aarch64",
"crypto_sources_linux_ppc64le",
"crypto_sources_linux_x86_64",
"crypto_sources_mac_x86_64",
@ -33,6 +34,11 @@ licenses(["notice"])
exports_files(["LICENSE"])
config_setting(
name = "linux_aarch64",
values = {"cpu": "aarch64"},
)
config_setting(
name = "linux_x86_64",
values = {"cpu": "k8"},
@ -103,6 +109,7 @@ posix_copts = [
]
boringssl_copts = select({
":linux_aarch64": posix_copts,
":linux_ppc64le": posix_copts,
":linux_x86_64": posix_copts,
":mac_x86_64": posix_copts,
@ -114,6 +121,7 @@ boringssl_copts = select({
})
crypto_sources_asm = select({
":linux_aarch64": crypto_sources_linux_aarch64,
":linux_ppc64le": crypto_sources_linux_ppc64le,
":linux_x86_64": crypto_sources_linux_x86_64,
":mac_x86_64": crypto_sources_mac_x86_64,
@ -129,6 +137,7 @@ posix_copts_c11 = [
]
boringssl_copts_c11 = boringssl_copts + select({
":linux_aarch64": posix_copts_c11,
":linux_ppc64le": posix_copts_c11,
":linux_x86_64": posix_copts_c11,
":mac_x86_64": posix_copts_c11,
@ -142,6 +151,7 @@ posix_copts_cxx = [
]
boringssl_copts_cxx = boringssl_copts + select({
":linux_aarch64": posix_copts_cxx,
":linux_ppc64le": posix_copts_cxx,
":linux_x86_64": posix_copts_cxx,
":mac_x86_64": posix_copts_cxx,

Loading…
Cancel
Save