Skip to content

Commit

Permalink
Change the default for ilc compiler architecture
Browse files Browse the repository at this point in the history
The host architecture for the ilc compiler package should default to .NET SDK architecture that the build is running under.

Fixes #79253
  • Loading branch information
jkotas committed Dec 16, 2022
1 parent af86947 commit fd249a5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@

<RuntimeIlcPackageName>runtime.$(OSIdentifier)-$(TargetArchitecture).Microsoft.DotNet.ILCompiler</RuntimeIlcPackageName>

<OSHostArch>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLowerInvariant)</OSHostArch>

<IlcHostArch Condition="'$(IlcHostArch)' == ''">$(OSHostArch)</IlcHostArch>
<!-- Default to host that matches SDK architecture -->
<IlcHostArch Condition="'$(IlcHostArch)' == ''">$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant)</IlcHostArch>
<IlcHostPackageName>runtime.$(OSIdentifier)-$(IlcHostArch).Microsoft.DotNet.ILCompiler</IlcHostPackageName>

<IlcCalledViaPackage>true</IlcCalledViaPackage>
Expand Down

0 comments on commit fd249a5

Please sign in to comment.