Skip to content

Commit

Permalink
WinRT: build fixes for ARM + Release on Win81 and WinPhone81
Browse files Browse the repository at this point in the history
It looks like MSVC 2013 might have a compiler-bug when building a particular
FreeType file, if and when /O2 is enabled for ARM builds.  This change makes
MSVC 2013 use /O1 on that file, for relevant builds.

Many thanks to asdron for details on the bug, and the fix!
  • Loading branch information
DavidLudwig committed Jan 22, 2015
1 parent c3d22ac commit 98a6eb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion VisualC-WinRT/WinPhone81_VS2013/freetype-WinPhone81.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
<ClInclude Include="..\..\external\freetype-2.4.12\include\ft2build.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\external\freetype-2.4.12\src\autofit\autofit.c" />
<ClCompile Include="..\..\external\freetype-2.4.12\src\autofit\autofit.c">
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">MinSpace</Optimization>
</ClCompile>
<ClCompile Include="..\..\external\freetype-2.4.12\src\base\ftbase.c" />
<ClCompile Include="..\..\external\freetype-2.4.12\src\base\ftbbox.c" />
<ClCompile Include="..\..\external\freetype-2.4.12\src\base\ftbitmap.c" />
Expand Down
4 changes: 3 additions & 1 deletion VisualC-WinRT/WinRT81_VS2013/freetype-WinRT81.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
<ClInclude Include="..\..\external\freetype-2.4.12\include\ft2build.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\external\freetype-2.4.12\src\autofit\autofit.c" />
<ClCompile Include="..\..\external\freetype-2.4.12\src\autofit\autofit.c">
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">MinSpace</Optimization>
</ClCompile>
<ClCompile Include="..\..\external\freetype-2.4.12\src\base\ftbase.c" />
<ClCompile Include="..\..\external\freetype-2.4.12\src\base\ftbbox.c" />
<ClCompile Include="..\..\external\freetype-2.4.12\src\base\ftbitmap.c" />
Expand Down

0 comments on commit 98a6eb0

Please sign in to comment.