Skip to content

Commit ac2bd5b

Browse files
committed
Fixes warnings when building python3.dll due to the .def file accumulating multiple copies of each line.
Adds shebang line to prepare_ssl so it will run with py.exe.
1 parent fdbeb2b commit ac2bd5b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

PCbuild/prepare_ssl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env python3
12
# Script for preparing OpenSSL for building on Windows.
23
# Uses Perl to create nmake makefiles and otherwise prepare the way
34
# for building on 32 or 64 bit platforms.

PCbuild/python3dll.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
</_Lines>
110110
</ItemGroup>
111111
<MakeDir Directories="$(IntDir)" />
112-
<WriteLinesToFile File="$(IntDir)python3_d.def" Lines="@(_Lines->'%(New)')" />
112+
<WriteLinesToFile File="$(IntDir)python3_d.def" Lines="@(_Lines->'%(New)')" Overwrite="true" />
113113
</Target>
114114

115115
<Target Name="BuildStubDef" BeforeTargets="PreLinkEvent" Inputs="..\PC\python3.def" Outputs="$(IntDir)python3stub.def">
@@ -132,7 +132,7 @@
132132
<_Lines Include="@(_Symbols->'%(Symbol)')" />
133133
</ItemGroup>
134134
<MakeDir Directories="$(IntDir)" />
135-
<WriteLinesToFile File="$(IntDir)python3stub.def" Lines="@(_Lines)" />
135+
<WriteLinesToFile File="$(IntDir)python3stub.def" Lines="@(_Lines)" Overwrite="true" />
136136
</Target>
137137
<Target Name="_CleanStubDef" BeforeTargets="CoreClean">
138138
<ItemGroup>

0 commit comments

Comments
 (0)