--- a/src/third_party/mozjs/SConscript	2025-04-23 23:57:44.000000000 +0400
+++ b/src/third_party/mozjs/SConscript	2025-09-16 10:19:18.122519869 +0400
@@ -147,8 +147,9 @@
 ]
 
 if env['TARGET_ARCH'] == 'x86_64' and not env.TargetOSIs('windows'):
-    env.Append(CCFLAGS=['-mavx2'])
-    sources.extend(["extract/mozglue/misc/SIMD_avx2.cpp", "extract/mozglue/misc/SSE.cpp"])
+    sources.extend(["extract/mozglue/misc/SSE.cpp"])
+#    env.Append(CCFLAGS=['-mavx2'])
+#    sources.extend(["extract/mozglue/misc/SIMD_avx2.cpp", "extract/mozglue/misc/SSE.cpp"])
 
 if env.TargetOSIs('windows'):
     sources.extend([
--- a/src/third_party/mozjs/include/mozilla/SSE.h	2025-09-24 13:35:53.412880691 +0400
+++ b/src/third_party/mozjs/include/mozilla/SSE.h	2025-09-24 13:36:21.609816467 +0400
@@ -319,9 +319,9 @@
 #if defined(MOZILLA_PRESUME_AVX2)
 #  define MOZILLA_MAY_SUPPORT_AVX2 1
 inline bool supports_avx2() { return true; }
-#elif defined(MOZILLA_SSE_HAVE_CPUID_DETECTION)
+/*#elif defined(MOZILLA_SSE_HAVE_CPUID_DETECTION)
 #  define MOZILLA_MAY_SUPPORT_AVX2 1
-inline bool supports_avx2() { return sse_private::avx2_enabled; }
+inline bool supports_avx2() { return sse_private::avx2_enabled; }*/
 #else
 inline bool supports_avx2() { return false; }
 #endif
