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