2023-08-22 20:38:56 +02:00
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
|
|
|
|
. "$DIR/prelude.sh"
|
|
|
|
|
|
|
|
# Compile without extra args from evergreen to better simulate local dev compilation.
|
|
|
|
|
|
|
|
cd src
|
|
|
|
|
|
|
|
set -o errexit
|
|
|
|
set -o verbose
|
|
|
|
|
|
|
|
if [ "Windows_NT" = "$OS" ]; then
|
|
|
|
vcvars="$(vswhere -latest -property installationPath | tr '\\' '/' | dos2unix.exe)/VC/Auxiliary/Build/"
|
|
|
|
export PATH="$(echo "$(cd "$vcvars" && cmd /C "vcvarsall.bat amd64 && C:/cygwin/bin/bash -c 'echo \$PATH'")" | tail -n +6)":$PATH
|
|
|
|
fi
|
|
|
|
activate_venv
|
|
|
|
|
|
|
|
set -o pipefail
|
|
|
|
|
2024-02-16 20:33:47 +01:00
|
|
|
echo "Setting evergreen tmp dir to $TMPDIR"
|
|
|
|
compile_flags="$compile_flags --evergreen-tmp-dir='${TMPDIR}'"
|
|
|
|
|
2023-08-22 20:38:56 +02:00
|
|
|
eval ${compile_env} $python ./buildscripts/scons.py \
|
|
|
|
${compile_flags} ${task_compile_flags} \
|
|
|
|
${targets} | tee scons_stdout.log
|
|
|
|
|
|
|
|
exit $?
|