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

Unified Diff: BUILD.gn

Issue 1166693006: clang/win/gn: Pass -msse flags to clang-cl.exe (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index bb55816b80bc13af5018c65e661746f740cafcbb..d33761594d914ec3ba388c0e8ade17b7cf9c32b4 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -89,7 +89,7 @@ static_library("libvpx_intrinsics_sse2") {
configs += [ ":libvpx_config" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
- if (!is_win) {
+ if (!is_win || is_clang) {
cflags = [ "-msse2" ]
}
if (current_cpu == "x86") {
@@ -103,7 +103,7 @@ static_library("libvpx_intrinsics_ssse3") {
configs += [ ":libvpx_config" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
- if (!is_win) {
+ if (!is_win || is_clang) {
cflags = [ "-mssse3" ]
}
if (current_cpu == "x86") {
@@ -117,7 +117,7 @@ static_library("libvpx_intrinsics_sse4_1") {
configs += [ ":libvpx_config" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
- if (!is_win) {
+ if (!is_win || is_clang) {
cflags = [ "-msse4.1" ]
}
if (current_cpu == "x86") {
« 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