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

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