]> 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:38:30 +0000 (15:38 -0700)
committerGitHub <noreply@github.com>
Mon, 28 May 2018 22:38:30 +0000 (15:38 -0700)
(cherry picked from commit f9b364fe51ac083e3e423b1e2cefe0e1ad7d9a60)

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

index 1364a17432ef1fac326ed8f830f81158ac051127..b20fc42125ca319556487d94d7049160dbd1b836 100644 (file)
@@ -58,3 +58,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