diff --git a/builds/85996-modified.patch b/builds/85996-modified.patch new file mode 100644 index 000000000000..20273448cebc --- /dev/null +++ b/builds/85996-modified.patch @@ -0,0 +1,100 @@ +From c11fa2be22891658a849b9320664057a7c433487 Mon Sep 17 00:00:00 2001 +From: Filip Navara +Date: Tue, 9 May 2023 19:20:19 +0200 +Subject: [PATCH] Update ILCompiler paths to handle + PublishAotUsingRuntimePack=true + +--- + .../Microsoft.NETCore.Native.Publish.targets | 4 +-- + .../Microsoft.NETCore.Native.Unix.targets | 10 +++---- + .../Microsoft.NETCore.Native.targets | 27 ++++++++++++++----- + 3 files changed, 28 insertions(+), 13 deletions(-) + +diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets +index 6f672918b33e0..be1fbde77efc9 100644 +--- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets ++++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Publish.targets +@@ -70,8 +70,8 @@ + Text="Add a PackageReference for '$(_hostPackageName)' to allow cross-compilation for $(_targetArchitecture)" /> + + +- +- ++ ++ + + + +- +- +- +- +- ++ ++ ++ ++ ++ + + + +diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets +index fbcadcc71b597..afa1cc1a66b9f 100644 +--- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets ++++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets +@@ -126,26 +126,41 @@ The .NET Foundation licenses this file to you under the MIT license. + + + ++ ++ <_NETCoreAppFrameworkReference Include="@(ResolvedFrameworkReference)" Condition="'%(ResolvedFrameworkReference.RuntimePackName)' == 'Microsoft.NETCore.App.Runtime.NativeAOT.$(RuntimeIdentifier)'" /> ++ ++ + + + $(IlcHostPackagePath)\tools\ + $(RuntimePackagePath)\sdk\ +- $(RuntimePackagePath)\framework\ +- $(RuntimePackagePath)\framework\ ++ $(RuntimePackagePath)\framework\ ++ <_NETCoreAppRuntimePackPath>%(_NETCoreAppFrameworkReference.RuntimePackPath)/runtimes/$(RuntimeIdentifier)/ ++ $(_NETCoreAppRuntimePackPath)\native\ ++ $(RuntimePackagePath)\framework\ ++ $(IlcFrameworkNativePath) ++ $(IlcSdkPath) + $(RuntimePackagePath)\mibc\ + + +- +- ++ ++ ++ ++ ++ + ++ ++ + + + +- +- + + + ++ ++ ++ ++ + + + diff --git a/builds/Makefile b/builds/Makefile index 34513b7a54de..53b106beca42 100644 --- a/builds/Makefile +++ b/builds/Makefile @@ -103,6 +103,15 @@ dotnet-install.sh: Makefile fix-maccatalyst-assembly/bin/Debug/fix-maccatalyst-assembly.exe: $(wildcard fix-maccatalyst-assembly/*.cs*) Makefile $(Q) $(SYSTEM_MSBUILD) "/bl:$@.binlog" /r fix-maccatalyst-assembly/fix-maccatalyst-assembly.csproj $(MSBUILD_VERBOSITY) +apply-filip-patch: + $(Q) $(MAKE) .stamp-apply-filip-patch-$(DOTNET_VERSION) + +.stamp-apply-filip-patch-$(DOTNET_VERSION): + $(Q) cd $(abspath $(TOP)/packages/microsoft.dotnet.ilcompiler/$(BUNDLED_NETCORE_PLATFORMS_PACKAGE_VERSION)/build) && git init . && git config user.email "temporary@example.com" && git config user.name "Temporary" && git add . && git commit -m "Start" && cat $(CURDIR)/85996-modified.patch | git am -p 5 --ignore-space-change + $(Q) cd $(abspath $(TOP)/packages/runtime.osx-x64.microsoft.dotnet.ilcompiler/$(BUNDLED_NETCORE_PLATFORMS_PACKAGE_VERSION)/build) && git init . && git config user.email "temporary@example.com" && git config user.name "Temporary" && git add . && git commit -m "Start" && cat $(CURDIR)/85996-modified.patch | git am -p 5 --ignore-space-change + $(Q) touch $@ + $(Q) echo "Applied Filip's fixes" + define FixMacCatalystAssembly $(MONO_MACCATALYST_SDK_DESTDIR)/maccat-bcl/monotouch/$(1).dll: .stamp-$(MONO_BUILD_MODE) @@ -161,6 +170,7 @@ package-download/all-package-references.csproj: $(TOP)/.git/HEAD $(TOP)/.git/ind /bl \ $(DOTNET_BUILD_VERBOSITY) $(MAKE) .stamp-install-custom-dotnet-runtime-workloads + $(Q) make apply-filip-patch $(Q) touch $@ .stamp-install-t4: $(TOP)/.config/dotnet-tools.json .stamp-download-dotnet-packages diff --git a/builds/package-download/download-packages.csproj b/builds/package-download/download-packages.csproj index 95b1db9dedec..8f391390abbd 100644 --- a/builds/package-download/download-packages.csproj +++ b/builds/package-download/download-packages.csproj @@ -25,6 +25,11 @@ + + + + +