summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-gn-linux.sh
blob: 578b8a89841ed5f04be5161751ed2d07b97e2ae8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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