diff options
Diffstat (limited to 'taskcluster/scripts/misc/build-gn-linux.sh')
-rwxr-xr-x | taskcluster/scripts/misc/build-gn-linux.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/taskcluster/scripts/misc/build-gn-linux.sh b/taskcluster/scripts/misc/build-gn-linux.sh new file mode 100755 index 0000000000..578b8a8984 --- /dev/null +++ b/taskcluster/scripts/misc/build-gn-linux.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -e -v + +# This script is for building GN on Linux. + +WORKSPACE=$HOME/workspace +COMPRESS_EXT=xz +export CC=$MOZ_FETCHES_DIR/gcc/bin/gcc +export CXX=$MOZ_FETCHES_DIR/gcc/bin/g++ +export LDFLAGS=-lrt + +# Gn build scripts use #!/usr/bin/env python, which will be python 2.6 on +# the worker and cause failures. Work around this by putting python2.7 +# ahead of it in PATH. +mkdir -p $WORKSPACE/python_bin +ln -s /usr/bin/python2.7 $WORKSPACE/python_bin/python +export PATH=$WORKSPACE/python_bin:$PATH + +cd $GECKO_PATH + +. taskcluster/scripts/misc/build-gn-common.sh |