diff options
author | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2020-04-01 09:39:45 -0700 |
---|---|---|
committer | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2020-04-01 09:39:45 -0700 |
commit | 32a3380f169bc3ee2218d97e9929cd3286d96334 (patch) | |
tree | a139ccf0976cd3813161eaff01d850ade9066245 /coreconf | |
parent | 1266f8598f86e92454e0281d7a6fbaaa64a95b98 (diff) | |
download | nss-hg-32a3380f169bc3ee2218d97e9929cd3286d96334.tar.gz |
Bug 1620799 - Introduce NSS_DISABLE_ARM32_NEON r=jcj
Only some Arm32 supports neon, so let's introduce NSS_DISABLE_ARM32_NEON
to allow disabling Neon acceleration when building for Arm32.
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Diffstat (limited to 'coreconf')
-rw-r--r-- | coreconf/config.gypi | 1 | ||||
-rw-r--r-- | coreconf/config.mk | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/coreconf/config.gypi b/coreconf/config.gypi index 2a730398b..f67dd7f13 100644 --- a/coreconf/config.gypi +++ b/coreconf/config.gypi @@ -103,6 +103,7 @@ 'disable_libpkix%': 1, 'disable_werror%': 0, 'disable_altivec%': 0, + 'disable_arm32_neon%': 0, 'mozilla_client%': 0, 'comm_client%': 0, 'moz_fold_libs%': 0, diff --git a/coreconf/config.mk b/coreconf/config.mk index 4eda497a2..b751ead5d 100644 --- a/coreconf/config.mk +++ b/coreconf/config.mk @@ -200,6 +200,11 @@ DEFINES += -DPKIX_OBJECT_LEAK_TEST endif endif +# Avoid building with Neon acceleration on Arm32 +ifdef NSS_DISABLE_ARM32_NEON +DEFINES += -DNSS_DISABLE_ARM32_NEON +endif + # Avoid building with PowerPC's Altivec acceleration ifdef NSS_DISABLE_ALTIVEC DEFINES += -DNSS_DISABLE_ALTIVEC |