summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 19:21:39 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 19:21:39 +0000
commitbe417138245009f5e42963374af6c4880192acb7 (patch)
tree000798415d6daf2712785f719adbf5a0e81973ac
parent3f396b93f0ff66f61893316a9bcac5506347aa31 (diff)
downloadchromium_src-be417138245009f5e42963374af6c4880192acb7.zip
chromium_src-be417138245009f5e42963374af6c4880192acb7.tar.gz
chromium_src-be417138245009f5e42963374af6c4880192acb7.tar.bz2
Only enable the sse2 flags when building Chromium
BUG=9007 Review URL: http://codereview.chromium.org/113487 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16506 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--build/common.gypi12
1 files changed, 9 insertions, 3 deletions
diff --git a/build/common.gypi b/build/common.gypi
index e0fba342..3219a26 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -302,12 +302,18 @@
# used during computation does not change depending on how the
# compiler optimized the code, since the value is always kept
# in its specified precision.
+ 'conditions': [
+ ['branding=="Chromium"', {
+ 'cflags': [
+ '-march=pentium4',
+ '-msse2',
+ '-mfpmath=sse',
+ ],
+ }],
+ ],
'cflags': [
'-m32',
- '-march=pentium4',
'-fno-exceptions',
- '-msse2',
- '-mfpmath=sse',
'-Wall',
],
'ldflags': [