Skip to content

Commit

Permalink
Issue 24385: Adds "--as-flags=--32" when generating 32-bit MinGW libr…
Browse files Browse the repository at this point in the history
…ary.
  • Loading branch information
zooba committed Jun 8, 2015
2 parents c5d2d40 + 9901856 commit f3ed926
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tools/msi/dev/dev.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
Condition="$(BuildForRelease)">
<!-- Build libpython##.a as part of this project. This requires gendef and dlltool on the path. -->
<PropertyGroup>
<_GenDefPlatform>i386</_GenDefPlatform>
<_GenDefPlatform Condition="$(Platform) == 'x64'">i386:x86-64</_GenDefPlatform>
<_DllToolOpts>-m i386 --as-flags=--32</_DllToolOpts>
<_DllToolOpts Condition="$(Platform) == 'x64'">-m i386:x86-64</_DllToolOpts>
</PropertyGroup>

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

<Import Project="..\msi.targets" />
Expand Down

0 comments on commit f3ed926

Please sign in to comment.