From 50cf10d82a5f04cfe15867a822d4a7a7d579aa02 Mon Sep 17 00:00:00 2001 From: petermayo Date: Thu, 9 Jul 2015 09:45:04 -0700 Subject: [PATCH] Make .gni less sensitive to type of arm_use_neon flags Comparing with 1 is less clear than using the input flags as booleans. BUG=5008276 Review URL: https://codereview.webrtc.org/1231663002 Cr-Commit-Position: refs/heads/master@{#9561} --- webrtc/build/webrtc.gni | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webrtc/build/webrtc.gni b/webrtc/build/webrtc.gni index 20fadab270..b93bc5e82f 100644 --- a/webrtc/build/webrtc.gni +++ b/webrtc/build/webrtc.gni @@ -106,9 +106,9 @@ declare_args() { } # Determines whether NEON code will be built. - rtc_build_with_neon = (current_cpu == "arm" && - (arm_use_neon == 1 || arm_optionally_use_neon == 1)) || - current_cpu == "arm64" + rtc_build_with_neon = + (current_cpu == "arm" && (arm_use_neon || arm_optionally_use_neon)) || + current_cpu == "arm64" # Enable this to use HW H.264 encoder/decoder on iOS PeerConnections. # Enabling this may break interop with Android clients that support H264.