From 6d82f35999ffb5a1ed85931578e46d66816b385b Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Wed, 14 Feb 2024 11:43:33 -0800 Subject: [PATCH 1/2] Forward the pgoinstrument argument to the inner build for VMR/Source-build builds Build all assets when we're building PGO-instrumented assets in a vertical build/source-build scenario (where we won't have assets from a non-PGO-instrumented job available) --- eng/DotNetBuild.props | 1 + eng/Subsets.props | 21 +++++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/eng/DotNetBuild.props b/eng/DotNetBuild.props index 8527ec175ad88b..3c68bf354bae17 100644 --- a/eng/DotNetBuild.props +++ b/eng/DotNetBuild.props @@ -61,6 +61,7 @@ $(InnerBuildArgs) /p:WasmEnableThreads=true $(InnerBuildArgs) $(FlagParameterPrefix)s clr.nativeaotlibs+clr.nativeaotruntime+libs+packs /p:BuildNativeAOTRuntimePack=true /p:SkipLibrariesNativeRuntimePackages=true + $(InnerBuildArgs) $(FlagParameterPrefix)pgoinstrument $(InnerBuildArgs) /p:DotNetBuildRepo=true diff --git a/eng/Subsets.props b/eng/Subsets.props index cd4532699b10e3..7af22c51e2e637 100644 --- a/eng/Subsets.props +++ b/eng/Subsets.props @@ -43,6 +43,11 @@ clr+libs+tools+host+packs + + + true + + <_subset Condition="'$(Subset)' != ''">+$(Subset.ToLowerInvariant())+ @@ -79,7 +84,7 @@ '$(BuildTargetFramework)' == '' or '$(BuildAllConfigurations)' == 'true'">libs.native+ $(DefaultLibrariesSubsets)libs.sfx+libs.oob+libs.pretest - + $(DefaultLibrariesSubsets)+libs.tests tools.illink @@ -391,7 +396,7 @@ - + @@ -448,7 +453,7 @@ - + @@ -508,10 +513,10 @@ - + - + @@ -521,7 +526,7 @@ - + @@ -531,12 +536,12 @@ - + - + From 270c543e78ffd20541af51e40c03bcb5775f670f Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Fri, 16 Feb 2024 09:23:55 -0800 Subject: [PATCH 2/2] Update Subsets.props Co-authored-by: Matt Mitchell --- eng/Subsets.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/Subsets.props b/eng/Subsets.props index 7af22c51e2e637..dd284ea6d99776 100644 --- a/eng/Subsets.props +++ b/eng/Subsets.props @@ -44,7 +44,7 @@ - + true