Skip to content

Commit 9901856

Browse files
committed
Issue 24385: Adds "--as-flags=--32" when generating 32-bit MinGW library.
1 parent 23e6109 commit 9901856

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Tools/msi/dev/dev.wixproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
Condition="$(BuildForRelease)">
3838
<!-- Build libpython##.a as part of this project. This requires gendef and dlltool on the path. -->
3939
<PropertyGroup>
40-
<_GenDefPlatform>i386</_GenDefPlatform>
41-
<_GenDefPlatform Condition="$(Platform) == 'x64'">i386:x86-64</_GenDefPlatform>
40+
<_DllToolOpts>-m i386 --as-flags=--32</_DllToolOpts>
41+
<_DllToolOpts Condition="$(Platform) == 'x64'">-m i386:x86-64</_DllToolOpts>
4242
</PropertyGroup>
4343

4444
<Exec Command='gendef - "$(BuildPath)$(PyDllName).dll" &gt; "$(IntermediateOutputPath)mingwlib.def"' ContinueOnError="false" />
45-
<Exec Command='dlltool --dllname $(PyDllName).dll --def "$(IntermediateOutputPath)mingwlib.def" --output-lib "$(BuildPath)lib$(PyDllName).a" -m $(_GenDefPlatform)' />
45+
<Exec Command='dlltool --dllname $(PyDllName).dll --def "$(IntermediateOutputPath)mingwlib.def" --output-lib "$(BuildPath)lib$(PyDllName).a" $(_DllToolOpts)' />
4646
</Target>
4747

4848
<Import Project="..\msi.targets" />

0 commit comments

Comments
 (0)