Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 25 lines 1.1 kB view raw
1--- a/src/third_party/mozjs/SConscript 2+++ b/src/third_party/mozjs/SConscript 3@@ -145,8 +145,7 @@ sources = [ 4 ] 5 6 if env['TARGET_ARCH'] == 'x86_64' and not env.TargetOSIs('windows'): 7- env.Append(CCFLAGS=['-mavx2']) 8- sources.extend(["extract/mozglue/misc/SIMD_avx2.cpp", "extract/mozglue/misc/SSE.cpp"]) 9+ sources.extend(["extract/mozglue/misc/SSE.cpp"]) 10 11 if env.TargetOSIs('windows'): 12 sources.extend([ 13diff --git a/src/third_party/mozjs/extract/mozglue/misc/SIMD.cpp b/src/third_party/mozjs/extract/mozglue/misc/SIMD.cpp 14index 3893de57b32..4ea0a657fbb 100644 15--- a/src/third_party/mozjs/extract/mozglue/misc/SIMD.cpp 16+++ b/src/third_party/mozjs/extract/mozglue/misc/SIMD.cpp 17@@ -448,7 +448,7 @@ const char* SIMD::memchr8SSE2(const char* ptr, char value, size_t length) { 18 // assertion failure. Accordingly, we just don't allow that to happen. We 19 // are not particularly concerned about ensuring that newer 32 bit processors 20 // get access to the AVX2 functions exposed here. 21-# if defined(MOZILLA_MAY_SUPPORT_AVX2) && defined(__x86_64__) 22+# if 0 23 24 bool SupportsAVX2() { return supports_avx2(); } 25