diff --git a/src/mscorlib/System.Private.CoreLib.csproj b/src/mscorlib/System.Private.CoreLib.csproj index e3a4980d148a..81785bd80b05 100644 --- a/src/mscorlib/System.Private.CoreLib.csproj +++ b/src/mscorlib/System.Private.CoreLib.csproj @@ -639,6 +639,7 @@ $(IntermediateOutputPath)..\cmake.definitions + python @@ -670,4 +671,4 @@ - \ No newline at end of file + diff --git a/sync.sh b/sync.sh index ab0fb578c5cb..c16738b955c6 100755 --- a/sync.sh +++ b/sync.sh @@ -1,5 +1,24 @@ #!/usr/bin/env bash +# resolve python-version to use +if [ "$PYTHON" == "" ] ; then + if ! PYTHON=$(command -v python2.7 || command -v python2 || command -v python || command -v python3) + then + echo "Unable to locate build-dependency python!" 1>&2 + exit 1 + fi +fi + +# validate python-dependency +# useful in case of explicitly set option. +if ! command -v $PYTHON > /dev/null +then + echo "Unable to locate build-dependency python ($PYTHON)!" 1>&2 + exit 1 +fi + +export PYTHON + usage() { echo "Usage: sync [-p]"