| Index: skia/BUILD.gn
|
| diff --git a/skia/BUILD.gn b/skia/BUILD.gn
|
| index 29ad87940729d4859ad9bb63d363df1f27f56a21..5fedacf3b149bcb209b92dcc99d4ebb7bb833ca4 100644
|
| --- a/skia/BUILD.gn
|
| +++ b/skia/BUILD.gn
|
| @@ -545,6 +545,7 @@ component("skia") {
|
| }
|
|
|
| # Separated out so it can be compiled with different flags for SSE.
|
| +# TODO(GYP): This is wrong, it needs one target per arch http://crbug.com/496512
|
| source_set("skia_opts") {
|
| cflags = []
|
| defines = []
|
| @@ -558,9 +559,10 @@ source_set("skia_opts") {
|
| "ext/convolver_SSE2.h",
|
| ]
|
|
|
| - if (is_linux || is_mac) {
|
| + if (!is_win || is_clang) {
|
| cflags += [ "-msse4.1" ]
|
| - } else if (is_win) {
|
| + }
|
| + if (is_win) {
|
| defines += [ "SK_CPU_SSE_LEVEL=41" ]
|
| }
|
| } else if (current_cpu == "arm") {
|
|
|