Blame SOURCES/runtime-74147-no-pgo-with-mono.patch

4feb78
From 98c1b3a803cb01232ee40bb4192679fcab3232e7 Mon Sep 17 00:00:00 2001
4feb78
From: Jo Shields <directhex@apebox.org>
4feb78
Date: Thu, 18 Aug 2022 09:08:36 -0400
4feb78
Subject: [PATCH] Don't try to build PGO tools on platforms with no CoreCLR
4feb78
 port.
4feb78
4feb78
Closes: #74102
4feb78
---
4feb78
 eng/Subsets.props | 3 ++-
4feb78
 1 file changed, 2 insertions(+), 1 deletion(-)
4feb78
4feb78
diff --git a/src/runtime/eng/Subsets.props b/src/runtime/eng/Subsets.props
4feb78
index 911c24dbde6..1e8e5801e57 100644
4feb78
--- a/src/runtime/eng/Subsets.props
4feb78
+++ b/src/runtime/eng/Subsets.props
4feb78
@@ -62,7 +62,8 @@
4feb78
     <DefaultMonoSubsets Condition="'$(MonoAOTEnableLLVM)' == 'true' and '$(MonoAOTLLVMDir)' == ''">mono.llvm+</DefaultMonoSubsets>
4feb78
     <DefaultMonoSubsets Condition="'$(TargetOS)' == 'Browser'">$(DefaultMonoSubsets)mono.wasmruntime+</DefaultMonoSubsets>
4feb78
     <DefaultMonoSubsets Condition="'$(MonoCrossAOTTargetOS)' != ''">$(DefaultMonoSubsets)mono.aotcross+</DefaultMonoSubsets>
4feb78
-    <DefaultMonoSubsets>$(DefaultMonoSubsets)mono.runtime+mono.corelib+mono.packages+mono.tools+</DefaultMonoSubsets>
4feb78
+    <DefaultMonoSubsets>$(DefaultMonoSubsets)mono.runtime+mono.corelib+mono.packages+</DefaultMonoSubsets>
4feb78
+    <DefaultMonoSubsets Condition="'$(PrimaryRuntimeFlavor)' != 'Mono'">$(DefaultMonoSubsets)mono.tools+</DefaultMonoSubsets>
4feb78
     <DefaultMonoSubsets Condition="'$(TargetsMobile)' != 'true'">$(DefaultMonoSubsets)host.native+</DefaultMonoSubsets>
4feb78
 
4feb78
     
4feb78
-- 
4feb78
2.37.2