Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions bin/build-electron
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ then
WEBRTC_ARGS="${WEBRTC_ARGS} is_debug=false symbol_level=1"
fi

# SME requires the ARMv9-A architecture, while most ARM64 devices are ARMv8. This was causing
# "undefined symbol: __arm_tpidr2_save" errors on such devices, including GitHub's ubuntu-22.04-arm runner.
# https://issuetracker.google.com/issues/359006069
# https://chromium.googlesource.com/libyuv/libyuv/+/61354d2671d9b5c73cc964415fe25bc76cea051a/BUILD.gn#273
if [ "$(uname)" = "Linux" ] && [ "${TARGET_ARCH}" = "arm64" ]
then
WEBRTC_ARGS="${WEBRTC_ARGS} libyuv_use_sme=false"
fi

(
cd src/webrtc/src
gn gen -C "${OUTPUT_DIR}/${BUILD_TYPE}" "--args=${WEBRTC_ARGS}"
Expand Down