#!/bin/bash set -x -e -v # 0.2.7 + --coverage suppport SCCACHE_REVISION=1ab9a33e8d328941acc23c74c949b765f975f309 # This script is for building sccache case "$(uname -s)" in Linux) WORKSPACE=$HOME/workspace UPLOAD_DIR=$HOME/artifacts COMPRESS_EXT=xz ;; MINGW*) WORKSPACE=$PWD UPLOAD_DIR=$WORKSPACE/public/build WIN_WORKSPACE="$(pwd -W)" COMPRESS_EXT=bz2 export INCLUDE="$WIN_WORKSPACE/build/src/vs2017_15.4.2/VC/include;$WIN_WORKSPACE/build/src/vs2017_15.4.2/VC/atlmfc/include;$WIN_WORKSPACE/build/src/vs2017_15.4.2/SDK/Include/10.0.15063.0/ucrt;$WIN_WORKSPACE/build/src/vs2017_15.4.2/SDK/Include/10.0.15063.0/shared;$WIN_WORKSPACE/build/src/vs2017_15.4.2/SDK/Include/10.0.15063.0/um;$WIN_WORKSPACE/build/src/vs2017_15.4.2/SDK/Include/10.0.15063.0/winrt;$WIN_WORKSPACE/build/src/vs2017_15.4.2/DIA SDK/include" export LIB="$WIN_WORKSPACE/build/src/vs2017_15.4.2/VC/lib/x64;$WIN_WORKSPACE/build/src/vs2017_15.4.2/VC/atlmfc/lib/x64;$WIN_WORKSPACE/build/src/vs2017_15.4.2/SDK/lib/10.0.15063.0/um/x64;$WIN_WORKSPACE/build/src/vs2017_15.4.2/SDK/lib/10.0.15063.0/ucrt/x64;$WIN_WORKSPACE/build/src/vs2017_15.4.2/DIA SDK/lib/amd64" PATH="$WORKSPACE/build/src/vs2017_15.4.2/VC/bin/Hostx64/x64:$WORKSPACE/build/src/vs2017_15.4.2/VC/bin/Hostx86/x86:$WORKSPACE/build/src/vs2017_15.4.2/SDK/bin/10.0.15063.0/x64:$WORKSPACE/build/src/vs2017_15.4.2/redist/x64/Microsoft.VC141.CRT:$WORKSPACE/build/src/vs2017_15.4.2/SDK/Redist/ucrt/DLLs/x64:$WORKSPACE/build/src/vs2017_15.4.2/DIA SDK/bin/amd64:$WORKSPACE/build/src/mingw64/bin:$PATH" ;; esac cd $WORKSPACE/build/src . taskcluster/scripts/misc/tooltool-download.sh PATH="$PWD/rustc/bin:$PATH" git clone https://github.com/mozilla/sccache sccache cd sccache git checkout $SCCACHE_REVISION # Link openssl statically so we don't have to bother with different sonames # across Linux distributions. We can't use the system openssl; see the sad # story in https://bugzilla.mozilla.org/show_bug.cgi?id=1163171#c26. case "$(uname -s)" in Linux) OPENSSL_TARBALL=openssl-1.1.0g.tar.gz curl -L -O https://www.openssl.org/source/$OPENSSL_TARBALL cat >$OPENSSL_TARBALL.sha256sum <