diff options
author | Richard Samuels <richard.l.samuels@gmail.com> | 2021-05-03 09:03:26 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-12 19:26:12 +0000 |
commit | f7235a380065092cacf65f15841eb98f6c52c1b4 (patch) | |
tree | b74be5a4668f4988a745c5f1c3fdc19b89847ffc /evergreen/compile_ninja.sh | |
parent | add1a7ef0ae1146f4ebd04b6bc0a0db30093726f (diff) | |
download | mongo-f7235a380065092cacf65f15841eb98f6c52c1b4.tar.gz |
SERVER-55626 Extract normal shell scripts from evergreen.yml part 4
Diffstat (limited to 'evergreen/compile_ninja.sh')
-rw-r--r-- | evergreen/compile_ninja.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/evergreen/compile_ninja.sh b/evergreen/compile_ninja.sh new file mode 100644 index 00000000000..63c4b0a62fc --- /dev/null +++ b/evergreen/compile_ninja.sh @@ -0,0 +1,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 |