summaryrefslogtreecommitdiffstats
path: root/security/nss
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2021-01-03 03:11:22 -0500
committerMatt A. Tobin <email@mattatobin.com>2021-01-03 03:11:22 -0500
commita625decfc91a0e973392c6d4f3339ff6b0615741 (patch)
tree9f46f4851604766a5aa5cf71259bc7b53ff56d27 /security/nss
parent84fa3f9f72e1221c5cd9e0723bffd0c4475e4914 (diff)
downloadUXP-a625decfc91a0e973392c6d4f3339ff6b0615741.tar
UXP-a625decfc91a0e973392c6d4f3339ff6b0615741.tar.gz
UXP-a625decfc91a0e973392c6d4f3339ff6b0615741.tar.lz
UXP-a625decfc91a0e973392c6d4f3339ff6b0615741.tar.xz
UXP-a625decfc91a0e973392c6d4f3339ff6b0615741.zip
[NSS hotpatch] Hard disable AVX2 in NSS Build System
This should be ported to the NSS repo
Diffstat (limited to 'security/nss')
-rw-r--r--security/nss/coreconf/config.mk28
1 files changed, 5 insertions, 23 deletions
diff --git a/security/nss/coreconf/config.mk b/security/nss/coreconf/config.mk
index f071dab36..867dd5e88 100644
--- a/security/nss/coreconf/config.mk
+++ b/security/nss/coreconf/config.mk
@@ -139,29 +139,11 @@ endif
#######################################################################
# Master "Core Components" macros for Hardware features #
#######################################################################
-ifndef NSS_DISABLE_AVX2
- ifneq ($(CPU_ARCH),x86_64)
- # Disable AVX2 entirely on non-Intel platforms
- NSS_DISABLE_AVX2 = 1
- $(warning CPU_ARCH is not x86_64, disabling -mavx2)
- else
- # Clang reports its version as an older gcc, but it's OK
- ifndef CC_IS_CLANG
- ifneq (,$(filter 0 1 2 3,$(word 1,$(GCC_VERSION))))
- NSS_DISABLE_AVX2 = 1
- endif
- ifeq (4,$(word 1,$(GCC_VERSION)))
- ifeq (,$(filter 8 9,$(word 2,$(GCC_VERSION))))
- NSS_DISABLE_AVX2 = 1
- endif
- endif
- endif
- ifeq (1,$(NSS_DISABLE_AVX2))
- $(warning Unable to find gcc 4.8 or greater, disabling -mavx2)
- export NSS_DISABLE_AVX2
- endif
- endif
-endif #ndef NSS_DISABLE_AVX2
+# NSS Build system does not properly support MozillaBuild 2 MSYS1
+# So we simply aren't going to enable AVX2 at all
+# Plus there seems to be an issue with it anyway for other reasons
+NSS_DISABLE_AVX2 = 1
+export NSS_DISABLE_AVX2
#######################################################################
# [15.0] Dependencies.