forked from mirrors/gecko-dev
- 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
20 lines
499 B
Bash
Executable file
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
|