diff options
Diffstat (limited to 'gyp/opts.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', |