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

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