gecko-dev/taskcluster/scripts/misc/build-gcc-7-linux.sh
Nathan Froyd 116083d76a Bug 1451104 - part 4 - sync up gcc-related toolchains and linux64-binutils binutils version; r=glandium
We're going to copy an x86_64-unknown-linux-gnu ld into the clang build,
which clang will then use in preference to things on PATH.  We therefore
need to ensure that this ld is the same ld as would be used for other
builds, such as PGO.  This change is the most expedient way to do that;
future work will make the gcc job(s) depend on linux64-binutils directly.

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

--HG--
extra : moz-landing-system : lando
2019-03-15 01:29:14 +00:00

32 lines
565 B
Bash
Executable file

#!/bin/bash
set -e
# This script is for building GCC 7 for Linux.
WORKSPACE=$HOME/workspace
HOME_DIR=$WORKSPACE/build
UPLOAD_DIR=$HOME/artifacts
root_dir=$HOME_DIR
data_dir=$HOME_DIR/src/build/unix/build-gcc
. $data_dir/build-gcc.sh
gcc_version=7.3.0
gcc_ext=xz
binutils_version=2.31.1
binutils_ext=xz
pushd $root_dir/gcc-$gcc_version
ln -sf ../gmp-6.1.0 gmp
ln -sf ../isl-0.16.1 isl
ln -sf ../mpc-1.0.3 mpc
ln -sf ../mpfr-3.1.4 mpfr
popd
build_binutils
build_gcc
# Put a tarball in the artifacts dir
mkdir -p $UPLOAD_DIR
cp $HOME_DIR/gcc.tar.* $UPLOAD_DIR