From 14e1f3562b60ae979b3993ee538ca54b34bad328 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Wed, 16 Apr 2025 15:22:59 -0700 Subject: [PATCH] Don't use BaseOS as the RID for publishing NativeAOT'd assets when OutputRID is the SDK's RID This fixes SourceBuild Stage2 failures in https://github.com/dotnet/sdk/pull/48523 --- src/coreclr/tools/aot/ILCompiler/ILCompiler_publish.csproj | 6 +++++- src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler_publish.csproj b/src/coreclr/tools/aot/ILCompiler/ILCompiler_publish.csproj index 3b996b78fb0416..d49edad34c479c 100644 --- a/src/coreclr/tools/aot/ILCompiler/ILCompiler_publish.csproj +++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler_publish.csproj @@ -3,7 +3,11 @@ <_IsPublishing>true $(OutputRID) - $(BaseOS) + + $(BaseOS) $(RuntimeBinDir)ilc-published/ true true diff --git a/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj b/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj index 54953da6834124..8e81546a2770a1 100644 --- a/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj +++ b/src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj @@ -3,7 +3,11 @@ <_IsPublishing>true $(OutputRID) - $(BaseOS) + + $(BaseOS) $(RuntimeBinDir)crossgen2-published/ true true