Skip to content

Commit 172d868

Browse files
committed
Update environment for MSVC + Ninja
1 parent 9174e8e commit 172d868

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ def PositiveInt(string):
184184
detail.verify_msys_path.verify(msys_path)
185185
os.environ['PATH'] = "{};{}".format(msys_path, os.getenv('PATH'))
186186

187-
if toolchain_entry.is_nmake:
187+
vs_ninja = toolchain_entry.is_ninja and toolchain_entry.vs_version
188+
if toolchain_entry.is_nmake or vs_ninja:
188189
os.environ = detail.get_nmake_environment.get(
189190
toolchain_entry.arch, toolchain_entry.vs_version
190191
)

0 commit comments

Comments
 (0)