diff options
author | Adam Langley <agl@google.com> | 2015-01-31 02:30:44 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-02-02 22:51:14 +0300 |
commit | d062c8afba962a54c82798c7e478f4e8719e4f95 (patch) | |
tree | 17c3ffb628c26099d636cf56322238f19bbf911e /crypto/CMakeLists.txt | |
parent | 2b2d66d4094e5c25789ce68310d86192c377c63b (diff) |
Probe for NEON support if getauxval is missing.
Android didn't have getauxval until Jelly Bean (4.1). This means that
BoringSSL running on older Androids won't be able to detect NEON
support. (This is moot for Chromium because Chromium calls
android_getCpuFeatures and sets the NEON flag itself, but other users of
BoringSSL on Android probably won't do that.)
This change mirrors a little of what upstream does and tries running a
NEON instruction with a handler for SIGILL installed.
Change-Id: I853b85c37ffb049b240582d71fcf07adedc37a30
Reviewed-on: https://boringssl-review.googlesource.com/3190
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/CMakeLists.txt')
-rw-r--r-- | crypto/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index cb8f63a5..0b64a0b4 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -72,6 +72,7 @@ if (${ARCH} STREQUAL "arm") CRYPTO_ARCH_SOURCES cpu-arm.c + cpu-arm-asm.S ) endif() |