Skip to content

Commit

Permalink
Add product rid to ILCompiler rids when bundling ILCompiler with the …
Browse files Browse the repository at this point in the history
…SDK.
  • Loading branch information
tmds committed Mar 1, 2024
1 parent e999629 commit 474b06f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/redist/redist.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<ResolveAssemblyReferencesSilent>true</ResolveAssemblyReferencesSilent>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>none</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
<BundleRuntimePacks Condition="'$(BundleRuntimePacks)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">true</BundleRuntimePacks>
<BundleNativeAotCompiler Condition="'$(BundleNativeAotCompiler)' == '' and '$(DotNetBuildSourceOnly)' == 'true' and '$(SourceBuildUseMonoRuntime)' != 'true'">true</BundleNativeAotCompiler>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/redist/targets/GenerateBundledVersions.targets
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@
https://github.com/dotnet/runtime/blob/main/src/installer/pkg/projects/Microsoft.DotNet.ILCompiler/ILCompilerRIDs.props -->
<ILCompilerSupportedRids Include="@(Net90ILCompilerSupportedRids)" />

<ILCompilerSupportedRids
Condition="'$(BundleNativeAotCompiler)' == 'true'"
Include="$(ProductMonikerRid)" />

<Net80NativeAOTRuntimePackRids Include="
ios-arm64;
iossimulator-arm64;
Expand Down

0 comments on commit 474b06f

Please sign in to comment.