Bug 1430087 - Build sccache with system GCC/binutils. r?build draft
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 10 Jan 2018 19:07:08 +0900
changeset 719640 3cda936ef092e52b0ea8ea9b732ab102da61f556
parent 719639 7c92680e18dbc44de8b2bb5efbb23c686e0fc504
child 745846 6973e8a4767e3f2f31431aaa6d973d5790729dc0
push id95309
push userbmo:mh+mozilla@glandium.org
push dateFri, 12 Jan 2018 13:18:39 +0000
reviewersbuild
bugs1430087
milestone59.0a1
Bug 1430087 - Build sccache with system GCC/binutils. r?build It was failing to build with the GCC/binutils on the CentOS-based docker image, but it doesn't with the Debian-based one, so we can remove the dependency on the gcc toolchain task. This allows sccache to remain untouched when we change the gcc build scripts, and more importantly, this allows it to depend on no toolchain that requires building things. This makes it now possible to use sccache as a dependency for all other toolchains jobs that compile, if that's beneficial (which might not be the case, given the current sccache retention time, but at least it's a viable option, now)
taskcluster/ci/toolchain/linux.yml
taskcluster/scripts/misc/build-sccache.sh
--- a/taskcluster/ci/toolchain/linux.yml
+++ b/taskcluster/ci/toolchain/linux.yml
@@ -423,17 +423,16 @@ linux64-sccache:
         max-run-time: 36000
     run:
         using: toolchain-script
         script: build-sccache.sh
         resources:
             - 'taskcluster/scripts/misc/tooltool-download.sh'
         toolchain-artifact: public/build/sccache2.tar.xz
     toolchains:
-        - linux64-gcc-4.9
         - linux64-rust-1.19
 
 linux64-gn:
     description: "gn toolchain build"
     treeherder:
         kind: build
         platform: toolchains/opt
         symbol: TL(gn)
--- a/taskcluster/scripts/misc/build-sccache.sh
+++ b/taskcluster/scripts/misc/build-sccache.sh
@@ -5,18 +5,16 @@ set -x -e -v
 SCCACHE_REVISION=8871ae7bd8d7f844228fbcfecb6f471b22a01e1d
 
 # This script is for building sccache
 
 case "$(uname -s)" in
 Linux)
     WORKSPACE=$HOME/workspace
     UPLOAD_DIR=$HOME/artifacts
-    export CC=gcc
-    PATH="$WORKSPACE/build/src/gcc/bin:$PATH"
     COMPRESS_EXT=xz
     ;;
 MINGW*)
     WORKSPACE=$PWD
     UPLOAD_DIR=$WORKSPACE/public/build
     WIN_WORKSPACE="$(pwd -W)"
     COMPRESS_EXT=bz2