[tbb-commits] [tor-browser] 26/179: Bug 1773223 - Turn gn into local toolchains. r=firefox-build-system-reviewers, ahochheiden a=RyanVM

gitolite role git at cupani.torproject.org
Fri Aug 19 08:35:23 UTC 2022


This is an automated email from the git hooks/post-receive script.

pierov pushed a commit to branch tor-browser-102.2.0esr-12.0-1
in repository tor-browser.

commit b4f83d2bc52d039c048b4415707069b57cd3a64a
Author: Mike Hommey <mh+mozilla at glandium.org>
AuthorDate: Wed Jun 15 07:06:06 2022 +0000

    Bug 1773223 - Turn gn into local toolchains. r=firefox-build-system-reviewers,ahochheiden a=RyanVM
    
    - Because we don't have a native arm64 mac one, alias the x86_64 one.
    - Because we always compress with zstd, don't pretend the main script
      has any power on the compression (which was wrong for Windows).
    
    Differential Revision: https://phabricator.services.mozilla.com/D149204
---
 taskcluster/ci/toolchain/gn.yml             | 5 +++--
 taskcluster/scripts/misc/build-gn-common.sh | 4 ++--
 taskcluster/scripts/misc/build-gn-linux.sh  | 1 -
 taskcluster/scripts/misc/build-gn-macosx.sh | 1 -
 taskcluster/scripts/misc/build-gn-win64.sh  | 1 -
 5 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/taskcluster/ci/toolchain/gn.yml b/taskcluster/ci/toolchain/gn.yml
index 5ba027ffd4b56..2e2abed75c54d 100644
--- a/taskcluster/ci/toolchain/gn.yml
+++ b/taskcluster/ci/toolchain/gn.yml
@@ -4,11 +4,11 @@
 ---
 job-defaults:
     description: "gn toolchain build"
+    attributes:
+        local-toolchain: true
     worker-type: b-linux
     worker:
         max-run-time: 1800
-    run-on-projects:
-        - trunk
     run:
         resources:
             - 'taskcluster/scripts/misc/build-gn-common.sh'
@@ -28,6 +28,7 @@ macosx64-gn:
         symbol: TM(gn)
     run:
         script: build-gn-macosx.sh
+        toolchain-alias: macosx64-aarch64-gn
     fetches:
         toolchain:
             - linux64-cctools-port
diff --git a/taskcluster/scripts/misc/build-gn-common.sh b/taskcluster/scripts/misc/build-gn-common.sh
index fe18d34e843f4..63d577cd0bbc3 100755
--- a/taskcluster/scripts/misc/build-gn-common.sh
+++ b/taskcluster/scripts/misc/build-gn-common.sh
@@ -32,5 +32,5 @@ if test "$MAC_CROSS" = "" -a "$(uname)" = "Linux"; then
 fi
 cp out/gn $STAGE
 
-tar -c $STAGE | python3 $GECKO_PATH/taskcluster/scripts/misc/zstdpy > gn.tar.$COMPRESS_EXT
-cp gn.tar.$COMPRESS_EXT $UPLOAD_DIR
+tar -c $STAGE | python3 $GECKO_PATH/taskcluster/scripts/misc/zstdpy > gn.tar.zst
+cp gn.tar.zst $UPLOAD_DIR
diff --git a/taskcluster/scripts/misc/build-gn-linux.sh b/taskcluster/scripts/misc/build-gn-linux.sh
index c0992dffd4c1e..0bdcdd19cf7a0 100755
--- a/taskcluster/scripts/misc/build-gn-linux.sh
+++ b/taskcluster/scripts/misc/build-gn-linux.sh
@@ -4,7 +4,6 @@ set -e -v
 # This script is for building GN on Linux.
 
 WORKSPACE=$HOME/workspace
-COMPRESS_EXT=zst
 export CC=gcc
 export CXX=g++
 export LDFLAGS=-lrt
diff --git a/taskcluster/scripts/misc/build-gn-macosx.sh b/taskcluster/scripts/misc/build-gn-macosx.sh
index b69eb43eee52b..5639294267b20 100755
--- a/taskcluster/scripts/misc/build-gn-macosx.sh
+++ b/taskcluster/scripts/misc/build-gn-macosx.sh
@@ -4,7 +4,6 @@ set -e -v
 # This script is for building GN.
 
 WORKSPACE=$HOME/workspace
-COMPRESS_EXT=zst
 
 CROSS_CCTOOLS_PATH=$MOZ_FETCHES_DIR/cctools
 CROSS_SYSROOT=$MOZ_FETCHES_DIR/MacOSX11.0.sdk
diff --git a/taskcluster/scripts/misc/build-gn-win64.sh b/taskcluster/scripts/misc/build-gn-win64.sh
index 402cc2acb9f5c..3ecd71fc74b77 100755
--- a/taskcluster/scripts/misc/build-gn-win64.sh
+++ b/taskcluster/scripts/misc/build-gn-win64.sh
@@ -4,7 +4,6 @@ set -e -v -x
 # This script is for building GN on Windows.
 
 UPLOAD_DIR=$PWD/public/build
-COMPRESS_EXT=bz2
 
 cd $GECKO_PATH
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list