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

Unified Diff: BUILD.gn

Issue 817293008: Add AVX flag for Windows GN builds (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 11 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 45eecb640340188604ca1dd063415fda23df880a..0011d68558a41f834db68d5d77ae959c6caec10c 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -131,7 +131,9 @@ static_library("libvpx_intrinsics_avx2") {
configs += [ ":libvpx_config" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
- if (!is_win) {
+ if (is_win) {
+ cflags = [ "/arch:AVX" ]
Tom Finegan 2015/01/22 18:43:49 msdn vs2013 docs[1] say both are supported. I thin
+ } else {
cflags = [ "-mavx2" ]
}
if (cpu_arch == "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