diff options
author | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-02-14 19:49:19 +0000 |
---|---|---|
committer | epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-02-14 19:49:19 +0000 |
commit | 2109923520e29ca2656da860eef6ea373781fd89 (patch) | |
tree | 3fb207a970cc072496a9d4c2cea8b8f0007744b5 /gyp | |
parent | 4ef14f8e835e33813dacb618abe03d1827c6ed81 (diff) |
hack to enable SSSE3 on Macs
Review URL: https://codereview.appspot.com/5649091
git-svn-id: http://skia.googlecode.com/svn/trunk@3195 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/opts.gyp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gyp/opts.gyp b/gyp/opts.gyp index d2aec5c0e0..11391a8514 100644 --- a/gyp/opts.gyp +++ b/gyp/opts.gyp @@ -89,11 +89,19 @@ '../src/core', ], 'conditions': [ - [ 'skia_os in ["linux", "freebsd", "mac", "openbsd", "solaris"]', { + [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { 'cflags': [ '-mssse3', ], }], + # TODO(epoger): the following will enable SSSE3 on Macs, but it will + # break once we set OTHER_CFLAGS anywhere else (the first setting will + # be replaced, not added to) + [ 'skia_os in ["mac"]', { + 'xcode_settings': { + 'OTHER_CFLAGS': ['-mssse3',], + }, + }], [ 'skia_target_arch != "arm"', { 'sources': [ '../src/opts/SkBitmapProcState_opts_SSSE3.cpp', |