summaryrefslogtreecommitdiff
path: root/evergreen/compile_ninja.sh
blob: 63c4b0a62fcc035a60ed104da05caeda6ea751f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
. "$DIR/prelude.sh"

cd src

activate_venv
if [ "Windows_NT" = "$OS" ]; then
  vcvars="$(vswhere -latest -property installationPath | tr '\\' '/' | dos2unix.exe)/VC/Auxiliary/Build/"
  cd "$vcvars" && cmd /K "vcvarsall.bat amd64 && cd ${workdir}\src"
fi
python -m pip install ninja
ninja install-core