aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Ben Wagner <benjaminwagner@google.com>2018-03-13 15:11:14 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-13 20:30:28 +0000
commitdf574048f5acc737775fc0281e3022d7faac0781 (patch)
tree72481153703ac9c36ed0eb4aaa943173f62b2f02 /gn/BUILD.gn
parente027e19477f8ad10ae3f26ea996c1bff350d89f3 (diff)
Add Win Clang x86 builds.
Enable /arch:SSE2 for Win x86 builds (both MSVC and Clang). Change-Id: I0618e938b6542b60fae3947b7e0dcde22650ba54 Reviewed-on: https://skia-review.googlesource.com/56721 Commit-Queue: Ben Wagner <benjaminwagner@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'gn/BUILD.gn')
-rw-r--r--gn/BUILD.gn4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index c574f928a2..97bb0303ff 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -112,7 +112,9 @@ config("default") {
"-mfpu=neon",
"-mthumb",
]
- } else if (current_cpu == "x86" && !is_win) {
+ } else if (current_cpu == "x86" && is_win) {
+ cflags += [ "/arch:SSE2" ]
+ } else if (current_cpu == "x86") {
asmflags += [ "-m32" ]
cflags += [
"-m32",