]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixes warnings when building python3.dll due to the .def file accumulating multiple...
authorSteve Dower <steve.dower@microsoft.com>
Fri, 3 Jul 2015 16:08:47 +0000 (09:08 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Fri, 3 Jul 2015 16:08:47 +0000 (09:08 -0700)
Adds shebang line to prepare_ssl so it will run with py.exe.

PCbuild/prepare_ssl.py
PCbuild/python3dll.vcxproj

index 671e526f9cfe698b9fd29722946c9617fbb782fd..4203dab2f8edf18870c122d0061e8ddbab7bfa1a 100644 (file)
@@ -1,3 +1,4 @@
+#! /usr/bin/env python3
 # Script for preparing OpenSSL for building on Windows.
 # Uses Perl to create nmake makefiles and otherwise prepare the way
 # for building on 32 or 64 bit platforms.
index b03d09fa39f4a0f7b2007e62be06b5578d41fd20..18ff4a83e912f23239b117621a0d373e8aa4b2c1 100644 (file)
       </_Lines>
     </ItemGroup>
     <MakeDir Directories="$(IntDir)" />
-    <WriteLinesToFile File="$(IntDir)python3_d.def" Lines="@(_Lines->'%(New)')" />
+    <WriteLinesToFile File="$(IntDir)python3_d.def" Lines="@(_Lines->'%(New)')" Overwrite="true" />
   </Target>
   
   <Target Name="BuildStubDef" BeforeTargets="PreLinkEvent" Inputs="..\PC\python3.def" Outputs="$(IntDir)python3stub.def">
       <_Lines Include="@(_Symbols->'%(Symbol)')" />
     </ItemGroup>
     <MakeDir Directories="$(IntDir)" />
-    <WriteLinesToFile File="$(IntDir)python3stub.def" Lines="@(_Lines)" />
+    <WriteLinesToFile File="$(IntDir)python3stub.def" Lines="@(_Lines)" Overwrite="true" />
   </Target>
   <Target Name="_CleanStubDef" BeforeTargets="CoreClean">
     <ItemGroup>