Blame SOURCES/build-coreclr-mscorlib.patch

627693
From 5164e76ce01fc36833a7f5e6fb7b1ec2f55c2262 Mon Sep 17 00:00:00 2001
627693
From: Omair Majid <omajid@redhat.com>
627693
Date: Wed, 1 Aug 2018 12:02:53 -0400
627693
Subject: [PATCH] Use the identified python when building
627693
 System.Private.CoreLib (#19043)
627693
627693
build.sh and build.cmd contain logic to identify a working version of
627693
python to use. System.Private.CoreLib ignores that and directly invokes
627693
'python', which may not work, or even execute a different program.
627693
---
627693
 build.sh                                                 | 2 ++
627693
 src/System.Private.CoreLib/System.Private.CoreLib.csproj | 2 +-
627693
 2 files changed, 3 insertions(+), 1 deletion(-)
627693
627693
diff --git a/build.sh b/build.sh
627693
index 091d6227caf..4002f2744c2 100755
627693
--- a/build.sh
627693
+++ b/build.sh
627693
@@ -22,6 +22,8 @@ then
627693
    exit 1
627693
 fi
627693
 
627693
+export PYTHON
627693
+
627693
 usage()
627693
 {
627693
     echo "Usage: $0 [BuildArch] [BuildType] [-verbose] [-coverage] [-cross] [-clangx.y] [-ninja] [-configureonly] [-skipconfigure] [-skipnative] [-skipmscorlib] [-skiptests] [-stripsymbols] [-ignorewarnings] [-cmakeargs] [-bindir]"
627693
diff --git a/src/mscorlib/System.Private.CoreLib.csproj b/src/mscorlib/System.Private.CoreLib.csproj
627693
index 9a2fc681703..0a02d3cffdf 100644
627693
--- a/src/mscorlib/System.Private.CoreLib.csproj
627693
+++ b/src/mscorlib/System.Private.CoreLib.csproj
627693
@@ -543,7 +543,7 @@
627693
     <PropertyGroup>
627693
       <CMakeDefinitionSaveFile>$(IntermediateOutputPath)..\cmake.definitions</CMakeDefinitionSaveFile>
627693
     </PropertyGroup>
627693
-    <Exec Command="python $(MSBuildThisFileDirectory)..\scripts\check-definitions.py "$(CMakeDefinitionSaveFile)" "$(DefineConstants)" "$(IgnoreDefineConstants)" " />
627693
+    <Exec Command=""$(PYTHON)" $(MSBuildThisFileDirectory)..\scripts\check-definitions.py "$(CMakeDefinitionSaveFile)" "$(DefineConstants)" "$(IgnoreDefineConstants)" " />
627693
   </Target>
627693
   <PropertyGroup Condition="'$(BuildOS)' == 'Windows_NT'">
627693
     <EnableDotnetAnalyzers Condition="'$(EnableDotnetAnalyzers)'==''">true</EnableDotnetAnalyzers>