From 16c76acc78ef03dacbf2f65de178a2c382e14ca8 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 21 Apr 2021 20:52:09 +0000 Subject: [PATCH] Include assembly optimizations in Bazel builds on Linux-aarch64. Signed-off-by: Piotr Sikora Change-Id: Ieb403b6651d445948abef48d7432fd248294284f Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/47084 Commit-Queue: David Benjamin Reviewed-by: David Benjamin --- util/BUILD.toplevel | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/util/BUILD.toplevel b/util/BUILD.toplevel index 99808e5a7..65e0cdc2e 100644 --- a/util/BUILD.toplevel +++ b/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,