tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 918bbfe95617311ff241241f492c81c614bc3a72
parent f25a99a5629f4efb8639fbe1766bfad62b79e3c8
Author: KS <kshampur@mozilla.com>
Date:   Thu, 13 Nov 2025 14:20:13 +0000

Bug 1999317 - Create an artifact of Android Chromium symbols. r=mstange

Update the build flags to include symbols during build time and package
the symbols as a separate artifact.

These symbols will allow engineers to properly profile
chromium-as-release (CaR) tests.

Enabling symbols with the build does increase the build time, but
fortunately not by much (just an additional 10-20 minutes)

Differential Revision: https://phabricator.services.mozilla.com/D272321

Diffstat:
Mtaskcluster/kinds/toolchain/misc.yml | 6++----
Mtaskcluster/scripts/misc/build-custom-car.sh | 9+++++++++
2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/taskcluster/kinds/toolchain/misc.yml b/taskcluster/kinds/toolchain/misc.yml @@ -309,7 +309,6 @@ android-custom-car: script: build-custom-car.sh arguments: [ car_android.tar.zst, - blink_symbol_level=0, chrome_pgo_phase=2, dcheck_always_on=false, enable_nacl=false, @@ -319,12 +318,11 @@ android-custom-car: is_component_build=false, is_debug=false, is_official_build=true, - symbol_level=0, + symbol_level=2, target_cpu="arm64", target_os="android", is_android=true, - is_high_end_android=true, - v8_symbol_level=0 + is_high_end_android=true ] toolchain-artifact: public/build/car_android.tar.zst diff --git a/taskcluster/scripts/misc/build-custom-car.sh b/taskcluster/scripts/misc/build-custom-car.sh @@ -228,3 +228,12 @@ tar -c chromium | python3 $GECKO_PATH/taskcluster/scripts/misc/zstdpy > $ARTIFAC mkdir -p $UPLOAD_DIR mv "$ARTIFACT_NAME" "$UPLOAD_DIR" + +if [ "$IS_ANDROID" = true ]; then + # Package up symbols (lib.unstripped) from android build separately. + SYM_ARTIFACT="car_android_symbols.tar.zst" + SYM_DIR="src/out/Default/lib.unstripped" + tar -C "$(dirname "$SYM_DIR")" -c "$(basename "$SYM_DIR")" \ + | python3 "$GECKO_PATH/taskcluster/scripts/misc/zstdpy" > "$SYM_ARTIFACT" + mv "$SYM_ARTIFACT" "$UPLOAD_DIR" +fi