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}
This commit is contained in:
petermayo 2015-07-09 09:45:04 -07:00 committed by Commit bot
parent 11324b9561
commit 50cf10d82a

View File

@ -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.