Bug 1430087 - Build sccache with system GCC/binutils. r=nfroyd
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 10 Jan 2018 19:07:08 +0900
changeset 450964 fd14af0fbb8f13ab09e23423b4d6134fbf909855
parent 450963 db7225f74e1f33a86616795aa0bdd110a8de9f8b
child 450965 4ed959e7652263aa2a57d582aed2460b4bdaab7c
push id8543
push userryanvm@gmail.com
push dateTue, 16 Jan 2018 14:33:22 +0000
treeherdermozilla-beta@a6525ed16a32 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnfroyd
bugs1430087
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1430087 - Build sccache with system GCC/binutils. r=nfroyd 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