Skip to content

Commit

Permalink
Fix Bazel build on aarch64 (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
markub3327 committed Jul 20, 2021
1 parent d61843e commit 2e94e5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions absl/copts/configure_copts.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ ABSL_RANDOM_RANDEN_COPTS = select({
":cpu_x64_windows": ABSL_RANDOM_HWAES_MSVC_X64_FLAGS,
":cpu_k8": ABSL_RANDOM_HWAES_X64_FLAGS,
":cpu_ppc": ["-mcrypto"],
":cpu_aarch64": ABSL_RANDOM_HWAES_ARM64_FLAGS,

# Supported by default or unsupported.
"//conditions:default": [],
Expand All @@ -70,6 +71,7 @@ def absl_random_randen_copts_init():
"darwin",
"x64_windows_msvc",
"x64_windows",
"aarch64",
]
for cpu in cpu_configs:
native.config_setting(
Expand Down

0 comments on commit 2e94e5b

Please sign in to comment.