]> granicus.if.org Git - python/commitdiff
bro-33614: Override exit code in find_msbuild.bat (GH-7169)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 28 May 2018 22:39:25 +0000 (15:39 -0700)
committerGitHub <noreply@github.com>
Mon, 28 May 2018 22:39:25 +0000 (15:39 -0700)
(cherry picked from commit f9b364fe51ac083e3e423b1e2cefe0e1ad7d9a60)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
PCbuild/find_msbuild.bat
PCbuild/python3dll.vcxproj

index 24f5e2fb5d46396557a87c2d5eab4905cf82c69a..57512a01927eae0c6abf481f8db9adc55c46eaac 100644 (file)
@@ -57,3 +57,4 @@
 @if not defined MSBUILD @echo Failed to find MSBuild
 @set _Py_MSBuild_Source=
 @if not defined MSBUILD @exit /b 1
+@exit /b 0
index 0ef7780248fbc89f87732d40f1a90ef7003d5f1a..d2a9cae5d917f8d74508a9d19778f02732f0ca8c 100644 (file)
       <_Lines Include="@(_Symbols->'%(Symbol)')" />
     </ItemGroup>
     <MakeDir Directories="$(IntDir)" />
-    <Message Text="Updating python3stub.def" Condition="@(_OriginalLines) != @(_Lines)" Importance="high" />
+    <Message Text="Updating python3stub.def" Condition="@(_Lines) != @(_OriginalLines)" Importance="high" />
     <WriteLinesToFile File="$(IntDir)python3stub.def" Lines="@(_Lines)" Overwrite="true"
-                      Condition="@(_DefLines) != @(_Lines)" />
+                      Condition="@(_Lines) != @(_OriginalLines)" />
   </Target>
 </Project>
\ No newline at end of file