|
| 1 | +From 451aa3e9544b0214d0e8e844c27af3847f5bf391 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Antoine Martin <dev@ayakael.net> |
| 3 | +Date: Fri, 18 Feb 2022 05:14:39 +0000 |
| 4 | +Subject: [PATCH 1/1] musl build fix |
| 5 | + |
| 6 | +Line causes build of aspnetcore on arm to look for linux version of |
| 7 | +CrossGen2 rather than linux-musl. This removes the line so that |
| 8 | +BuildOsName is pulled from TargetOsName as expected |
| 9 | + |
| 10 | +Will be fixed once https://github.com/dotnet/aspnetcore/issues/37400 |
| 11 | +is addressed. |
| 12 | + |
| 13 | +--- |
| 14 | + .../App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj | 1 - |
| 15 | + 1 file changed, 1 deletion(-) |
| 16 | + |
| 17 | +diff --git a/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj b/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj |
| 18 | +index aeb3c08f13..380fc5fbac 100644 |
| 19 | +--- a/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj |
| 20 | ++++ b/src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj |
| 21 | +@@ -104,7 +104,6 @@ This package is an internal implementation of the .NET Core SDK and is not meant |
| 22 | + Special case the crossgen2 package reference on Windows to avoid the x86 package when building in Visual Studio. |
| 23 | + --> |
| 24 | + <BuildOsName>$(TargetOsName)</BuildOsName> |
| 25 | +- <BuildOsName Condition="'$(TargetOsName)' == 'linux-musl' and '$(TargetArchitecture)'!='x64'">linux</BuildOsName> |
| 26 | + <Crossgen2BuildArchitecture Condition=" '$(BuildOsName)' == 'win' ">x64</Crossgen2BuildArchitecture> |
| 27 | + <Crossgen2BuildArchitecture Condition=" '$(Crossgen2BuildArchitecture)' == '' ">$(BuildArchitecture)</Crossgen2BuildArchitecture> |
| 28 | + <Crossgen2PackageRootVariableName>PkgMicrosoft_NETCore_App_Crossgen2_$(BuildOsName)-$(Crossgen2BuildArchitecture)</Crossgen2PackageRootVariableName> |
| 29 | +-- |
| 30 | +2.34.1 |
| 31 | + |
0 commit comments