Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: skia/BUILD.gn

Issue 377833002: GN: Fix skia build on mac, use -msse4.1 everywhere (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/BUILD.gn
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index 55266f471ec995c31e666030939171bc4c55861b..01d1d37a83879d9002e8985ae97939be752cd201 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -136,6 +136,10 @@ config("skia_config") {
"USE_CHROMIUM_SKIA",
]
}
+
+ if (is_mac) {
+ defines += [ "SK_BUILD_FOR_MAC" ]
+ }
}
# Internal-facing config for Skia library code.
@@ -559,8 +563,10 @@ source_set("skia_opts") {
sources += [ "//third_party/skia/src/opts/SkBlitRow_opts_SSE4_x64_asm.S" ]
}
- if (is_linux || is_mac) {
+ if (is_linux) {
cflags += [ "-msse4" ]
+ } else if (is_mac) {
+ cflags += [ "-msse4.1" ]
Nico 2014/07/08 17:20:52 Is this actually needed? This currently uses msse4
}
} else if (cpu_arch == "arm") {
sources = [
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698