Skip to content

Commit

Permalink
[dotnet] Enable LLVM by default for release builds. Fixes dotnet#12147.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Sep 8, 2021
1 parent 8dc4131 commit bad799d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dotnet/targets/Xamarin.Shared.Sdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,15 @@
<_RuntimeIdentifierUsesAppHost>false</_RuntimeIdentifierUsesAppHost>
<UseAppHost>false</UseAppHost>
</PropertyGroup>

<!--
Enable LLVM by default for mobile release builds.
At this point we don't necessarily know yet whether we're building for device or simulator,
but the MtouchUseLlvm value is ignored when using the simulator, so it doesn't matter
if we set it in all cases.
-->
<PropertyGroup Condition="'$(MtouchUseLlvm)' == '' And '$(Configuration)' == 'Release' And ('$(_PlatformName)' == 'iOS' Or '$(_PlatformName)' == 'tvOS')">
<MtouchUseLlvm>true</MtouchUseLlvm>
</PropertyGroup>
</Project>

0 comments on commit bad799d

Please # to comment.