summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorfbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-16 02:00:44 +0000
committerfbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-16 02:00:44 +0000
commit0183dbb2875dd270d1bf2afde9fca88501d67d37 (patch)
tree7bea386e34863533fdb62bba61742b37dfe37b0d /build
parent7af60c5bcc6456545324a676bcfce381210620ac (diff)
downloadchromium_src-0183dbb2875dd270d1bf2afde9fca88501d67d37.zip
chromium_src-0183dbb2875dd270d1bf2afde9fca88501d67d37.tar.gz
chromium_src-0183dbb2875dd270d1bf2afde9fca88501d67d37.tar.bz2
Enable SSE2 compilation for ChromeOS.
In practice the <video> tag needs this for faster YUV conversion/filtering. BUG=19113 TEST=Test youtube html5 with chromeos (not chromiumos). It should not crash, and it should be faster. Review URL: http://codereview.chromium.org/1553035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 33a24b3..8a38777 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -891,6 +891,15 @@
'-mfpmath=sse',
],
}],
+ # ChromeOS targets Pinetrail, which is ssse3, but most of the
+ # 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', {
+ 'cflags': [
+ '-msse2',
+ ],
+ }],
],
# -mmmx allows mmintrin.h to be used for mmx intrinsics.
# video playback is mmx and sse2 optimized.