fune/taskcluster/scripts/misc/build-gn-linux.sh
Mike Hommey 35dc22eaac Bug 1773223 - Turn gn into local toolchains. r=firefox-build-system-reviewers,ahochheiden
- Because we don't have a native arm64 mac one, alias the x86_64 one.
- Because we always compress with zstd, don't pretend the main script
  has any power on the compression (which was wrong for Windows).

Differential Revision: https://phabricator.services.mozilla.com/D149204
2022-06-15 07:06:06 +00:00

20 lines
499 B
Bash
Executable file

#!/bin/bash
set -e -v
# This script is for building GN on Linux.
WORKSPACE=$HOME/workspace
export CC=gcc
export CXX=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