0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-24 00:17:37 +01:00
mongodb/evergreen/scons_raw_compile.sh
Zack Winter bd01a61df2 SERVER-86713 Add EngFlow creds setup to linter and formatter tasks (#19070)
GitOrigin-RevId: b34e71f9fe85a89621e7194c09c496e89d05e4c9
2024-02-16 19:41:34 +00:00

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 $?