Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index 80452237475c1cc9c82e249ad99db3883737cb88..0ce78c849a4fa5dc2dee3ba9a0a0cde0fd5b8fd5 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -127,22 +127,21 @@ static_library("libvpx_intrinsics_sse4_1") { |
} |
} |
-# 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 |
-# } |
-#} |
+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") { |
@@ -237,7 +236,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") { |