mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
bd01a61df2
GitOrigin-RevId: b34e71f9fe85a89621e7194c09c496e89d05e4c9
27 lines
773 B
Bash
Executable File
27 lines
773 B
Bash
Executable File
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
|
|
|
|
echo "Setting evergreen tmp dir to $TMPDIR"
|
|
compile_flags="$compile_flags --evergreen-tmp-dir='${TMPDIR}'"
|
|
|
|
eval ${compile_env} $python ./buildscripts/scons.py \
|
|
${compile_flags} ${task_compile_flags} \
|
|
${targets} | tee scons_stdout.log
|
|
|
|
exit $?
|