Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index a6ba88088eb46ac456e34f5f21dd31980aad32b4..a993fb0cc6e79a8782b0cf8953b9027b51715384 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -619,7 +619,6 @@ |
'arm_neon%': '<(arm_neon)', |
'sysroot%': '<(sysroot)', |
'system_libdir%': '<(system_libdir)', |
- 'disable_sse2%': '<(disable_sse2)', |
'component%': '<(component)', |
'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)', |
'use_third_party_translations%': '<(use_third_party_translations)', |
@@ -1174,6 +1173,13 @@ |
'disable_glibc%': 0, |
}], |
+ # Disable SSE2 when building for ARM or MIPS. |
+ ['target_arch=="arm" or target_arch=="mipsel"', { |
+ 'disable_sse2%': 1, |
+ }, { |
+ 'disable_sse2%': '<(disable_sse2)', |
+ }], |
+ |
# Set the relative path from this file to the GYP file of the JPEG |
# library used by Chromium. |
['use_system_libjpeg==1 or use_libjpeg_turbo==0', { |