From acce4fde4c55476ef42435e17de1702ccdd0dae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Tue, 16 Aug 2022 21:18:19 +0900 Subject: [PATCH] Publish ILC as a trimmed+R2R+singlefile executable (#73987) This is the same configuration that we ship crossgen2 with. It produces a lot smaller packages with faster startup time. Setting this as `CoreCLRILCompilerDir` ensures that this is the ILCompiler that we test, build crossgen2 with, and package. I don't have high confidence that we can get #67742 in time for .NET 7 but since we still have some runway before .NET 7 snaps, checking this in as a plan B. This change is temporary until #67742 is fixed. --- eng/liveBuilds.targets | 2 +- .../ILCompiler.Build.Tasks.csproj | 2 +- .../tools/aot/ILCompiler/ILCompiler.csproj | 24 +++++++++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/eng/liveBuilds.targets b/eng/liveBuilds.targets index 0da788b3c2725..5802882a82a0b 100644 --- a/eng/liveBuilds.targets +++ b/eng/liveBuilds.targets @@ -24,7 +24,7 @@ $([MSBuild]::NormalizeDirectory('$(CoreCLRArtifactsPath)', 'sharedFramework')) $([MSBuild]::NormalizeDirectory('$(CoreCLRArtifactsPath)', 'crossgen2')) - $([MSBuild]::NormalizeDirectory('$(CoreCLRArtifactsPath)', 'ilc')) + $([MSBuild]::NormalizeDirectory('$(CoreCLRArtifactsPath)', 'ilc-published')) $([MSBuild]::NormalizeDirectory('$(CoreCLRArtifactsPath)', '$(BuildArchitecture)', 'ilc')) $([MSBuild]::NormalizeDirectory('$(CoreCLRArtifactsPath)', 'aotsdk')) $([MSBuild]::NormalizeDirectory('$(CoreCLRArtifactsPath)', 'build')) diff --git a/src/coreclr/tools/aot/ILCompiler.Build.Tasks/ILCompiler.Build.Tasks.csproj b/src/coreclr/tools/aot/ILCompiler.Build.Tasks/ILCompiler.Build.Tasks.csproj index a9f6ab9c1198a..7f9ebf2252e89 100644 --- a/src/coreclr/tools/aot/ILCompiler.Build.Tasks/ILCompiler.Build.Tasks.csproj +++ b/src/coreclr/tools/aot/ILCompiler.Build.Tasks/ILCompiler.Build.Tasks.csproj @@ -5,7 +5,7 @@ ILCompiler.Build.Tasks netstandard2.0 false - $(RuntimeBinDir)/ilc/netstandard + $(RuntimeBinDir)/ilc-published/netstandard Debug;Release;Checked AnyCPU diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj index 82df6cbdd236c..3b70c7b427be1 100644 --- a/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj +++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj @@ -5,4 +5,28 @@ + + + + + $(RuntimeBinDir)ilc-published/ + true + true + true + + + + + + + + + + +