From 775bce3832fa6132b3d0afef3dc7f3854706fef0 Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Fri, 1 Apr 2022 22:38:33 +0200 Subject: [PATCH 1/2] Stop passing StandardOptimizationData.mibc to crossgen2 multiple times for SPC --- src/coreclr/crossgen-corelib.proj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/coreclr/crossgen-corelib.proj b/src/coreclr/crossgen-corelib.proj index 4df7d1f25169bd..804e8c0c21fe76 100644 --- a/src/coreclr/crossgen-corelib.proj +++ b/src/coreclr/crossgen-corelib.proj @@ -84,8 +84,7 @@ $(CrossGenDllCmd) -o:$(CoreLibOutputPath) $(CrossGenDllCmd) -r:$([MSBuild]::NormalizePath('$(BinDir)', 'IL', '*.dll')) $(CrossGenDllCmd) --targetarch:$(TargetArchitecture) - @(OptimizationMibcFiles->'-m:$(MergedMibcPath)', ' ') - $(CrossGenDllCmd) $(MibcArgs) --embed-pgo-data + $(CrossGenDllCmd) -m:$(MergedMibcPath) --embed-pgo-data $(CrossGenDllCmd) -O $(CrossGenDllCmd) --verify-type-and-field-layout $(CrossGenDllCmd) $(CoreLibInputPath) From 6c7c704e8110eba8d977093f45d803fcafb97743 Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Tue, 5 Apr 2022 17:35:15 +0200 Subject: [PATCH 2/2] Disable managed PGO for SourceBuild --- eng/SourceBuild.props | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/SourceBuild.props b/eng/SourceBuild.props index e191178c9068fc..012ae63c6570e4 100644 --- a/eng/SourceBuild.props +++ b/eng/SourceBuild.props @@ -38,6 +38,7 @@ $(InnerBuildArgs) /p:RuntimeOS=$(TargetRidWithoutPlatform) $(InnerBuildArgs) /p:PortableBuild=$(SourceBuildPortable) $(InnerBuildArgs) /p:BuildDebPackage=false + $(InnerBuildArgs) /p:EnableNgenOptimization=false