Skip to content

Commit ff4d675

Browse files
committed
Fix ios
1 parent d28b8a5 commit ff4d675

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
<PropertyGroup>
33
<OutputPath>$(RuntimeBinDir)ilc/</OutputPath>
44
<RuntimeIdentifier>$(OutputRID)</RuntimeIdentifier>
5+
<RuntimeIdentifier Condition="'$(TargetsMobile)' == 'true'">$(PackageRID)</RuntimeIdentifier>
56
</PropertyGroup>
67

7-
<PropertyGroup Condition="'$(UseNativeAotForComponents)' != 'true' and '$(CrossBuild)' == 'true'">
8+
<PropertyGroup Condition="'$(UseNativeAotForComponents)' != 'true' and '$(CrossBuild)' == 'true' and '$(TargetsMobile)' != 'true'">
89
<UseLocalTargetingRuntimePack>true</UseLocalTargetingRuntimePack>
910
</PropertyGroup>
1011

11-
<Import Project="$(RepositoryEngineeringDir)targetingpacks.targets" />
12-
<Import Project="$(RepositoryEngineeringDir)codeOptimization.targets" />
12+
<Import Project="$(RepositoryEngineeringDir)targetingpacks.targets" Condition="'$(UseNativeAotForComponents)' != 'true' and '$(CrossBuild)' == 'true' and '$(TargetsMobile)' != 'true'" />
13+
<Import Project="$(RepositoryEngineeringDir)codeOptimization.targets" Condition="'$(UseNativeAotForComponents)' != 'true' and '$(CrossBuild)' == 'true' and '$(TargetsMobile)' != 'true'" />
1314

1415
<Import Project="ILCompiler.props" />
1516

0 commit comments

Comments
 (0)