diff --git a/webrtc.gni b/webrtc.gni index 0395f3b652..ca8acdbf25 100644 --- a/webrtc.gni +++ b/webrtc.gni @@ -243,7 +243,11 @@ declare_args() { # Set this to true to enable the avx2 support in webrtc. # TODO: Make sure that AVX2 works also for non-clang compilers. - rtc_enable_avx2 = is_clang + if (is_clang == true) { + rtc_enable_avx2 = true + } else { + rtc_enable_avx2 = false + } # Include tests in standalone checkout. rtc_include_tests = !build_with_chromium && !build_with_mozilla