From 172d8689a76cfafb83bb15130dc0621a36ad6f00 Mon Sep 17 00:00:00 2001 From: Ruslan Baratov Date: Wed, 27 Jan 2016 22:38:30 +0700 Subject: [PATCH] Update environment for MSVC + Ninja --- bin/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/build.py b/bin/build.py index ee52a823..1d708c2e 100755 --- a/bin/build.py +++ b/bin/build.py @@ -184,7 +184,8 @@ def PositiveInt(string): detail.verify_msys_path.verify(msys_path) os.environ['PATH'] = "{};{}".format(msys_path, os.getenv('PATH')) -if toolchain_entry.is_nmake: +vs_ninja = toolchain_entry.is_ninja and toolchain_entry.vs_version +if toolchain_entry.is_nmake or vs_ninja: os.environ = detail.get_nmake_environment.get( toolchain_entry.arch, toolchain_entry.vs_version )