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

Unified Diff: BUILD.gn

Issue 880513003: Disable AVX2 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: forgot to comment one more spot - not sure if GN allows empty rules and this is even necessary but … 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 | generate_gypi.sh » ('j') | 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 0ce78c849a4fa5dc2dee3ba9a0a0cde0fd5b8fd5..80452237475c1cc9c82e249ad99db3883737cb88 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -127,21 +127,22 @@ static_library("libvpx_intrinsics_sse4_1") {
}
}
-static_library("libvpx_intrinsics_avx2") {
- configs += [ ":libvpx_config" ]
- configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [ "//build/config/compiler:no_chromium_code" ]
- if (is_win) {
- cflags = [ "/arch:AVX2" ]
- } else {
- cflags = [ "-mavx2" ]
- }
- if (cpu_arch == "x86") {
- sources = libvpx_srcs_x86_avx2
- } else if (cpu_arch == "x64") {
- sources = libvpx_srcs_x86_64_avx2
- }
-}
+# Uncomment when enabling AVX2
+#static_library("libvpx_intrinsics_avx2") {
+# configs += [ ":libvpx_config" ]
+# configs -= [ "//build/config/compiler:chromium_code" ]
+# configs += [ "//build/config/compiler:no_chromium_code" ]
+# if (is_win) {
+# cflags = [ "/arch:AVX2" ]
+# } else {
+# cflags = [ "-mavx2" ]
+# }
+# if (cpu_arch == "x86") {
+# sources = libvpx_srcs_x86_avx2
+# } else if (cpu_arch == "x64") {
+# sources = libvpx_srcs_x86_64_avx2
+# }
+#}
if (cpu_arch_full == "arm-neon-cpu-detect") {
static_library("libvpx_intrinsics_neon") {
@@ -236,7 +237,7 @@ static_library("libvpx") {
":libvpx_intrinsics_sse2",
":libvpx_intrinsics_ssse3",
":libvpx_intrinsics_sse4_1",
- ":libvpx_intrinsics_avx2",
+ #":libvpx_intrinsics_avx2",
]
}
if (cpu_arch_full == "arm-neon-cpu-detect") {
« no previous file with comments | « no previous file | generate_gypi.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698