summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-28 02:14:22 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-28 02:14:22 +0000
commitac120ff0d2d174c9a3497f0d84b8311bf354cd0e (patch)
treec8ba2757fcff9c06d2ca2e0572f404c933955fb7 /build/common.gypi
parentffd87ddce66fe585c49efeca0602fece11339ed0 (diff)
downloadchromium_src-ac120ff0d2d174c9a3497f0d84b8311bf354cd0e.zip
chromium_src-ac120ff0d2d174c9a3497f0d84b8311bf354cd0e.tar.gz
chromium_src-ac120ff0d2d174c9a3497f0d84b8311bf354cd0e.tar.bz2
Add a gyp flag for disabling sse2. This makes it easier for
distros to disable sse2. Review URL: http://codereview.chromium.org/1702009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45777 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi8
1 files changed, 6 insertions, 2 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 3739059..b1a94cc 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -106,6 +106,9 @@
# The system root for cross-compiles. Default: none.
'sysroot%': '',
+
+ # On Linux, we build with sse2 for Chromium builds.
+ 'disable_sse2%': 0,
},
# Define branding and buildtype on the basis of their settings within the
@@ -123,6 +126,7 @@
'armv7%': '<(armv7)',
'arm_neon%': '<(arm_neon)',
'sysroot%': '<(sysroot)',
+ 'disable_sse2%': '<(disable_sse2)',
# The release channel that this build targets. This is used to restrict
# channel-specific build options, like which installer packages to create.
@@ -916,7 +920,7 @@
# compiler optimized the code, since the value is always kept
# in its specified precision.
'conditions': [
- ['branding=="Chromium"', {
+ ['branding=="Chromium" and disable_sse2==0', {
'cflags': [
'-march=pentium4',
'-msse2',
@@ -927,7 +931,7 @@
# benefit comes from sse2 so this setting allows ChromeOS
# to build on other CPUs. In the future -march=atom would help
# but requires a newer compiler.
- ['chromeos==1', {
+ ['chromeos==1 and disable_sse2==0', {
'cflags': [
'-msse2',
],