diff options
author | Steve Dower <steve.dower@microsoft.com> | 2018-05-28 19:32:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-28 19:32:05 (GMT) |
commit | e97ba4c690613d734843db218aeedce2f0e5937f (patch) | |
tree | 14271b85341adbd8876042be50b79c69fdc98184 /PCbuild/find_msbuild.bat | |
parent | c6c05d0e69cd5a7d0205019c29a1236b7bf3f5b9 (diff) | |
download | cpython-e97ba4c690613d734843db218aeedce2f0e5937f.zip cpython-e97ba4c690613d734843db218aeedce2f0e5937f.tar.gz cpython-e97ba4c690613d734843db218aeedce2f0e5937f.tar.bz2 |
bpo-33614: Ensures module definition files for the stable ABI on Windows are correctly regenerated. (GH-7165)
Diffstat (limited to 'PCbuild/find_msbuild.bat')
-rw-r--r-- | PCbuild/find_msbuild.bat | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/PCbuild/find_msbuild.bat b/PCbuild/find_msbuild.bat index 1877906..24f5e2f 100644 --- a/PCbuild/find_msbuild.bat +++ b/PCbuild/find_msbuild.bat @@ -47,5 +47,13 @@ @exit /b 1 :found -@echo Using %MSBUILD% (found in the %_Py_MSBuild_Source%) +@pushd %MSBUILD% >nul 2>nul +@if not ERRORLEVEL 1 @( + @if exist msbuild.exe @(set MSBUILD="%CD%\msbuild.exe") else @(set MSBUILD=) + @popd +) + +@if defined MSBUILD @echo Using %MSBUILD% (found in the %_Py_MSBuild_Source%) +@if not defined MSBUILD @echo Failed to find MSBuild @set _Py_MSBuild_Source= +@if not defined MSBUILD @exit /b 1 |