This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 639639 <!-- Compiler Definition Verification -->
640640 <PropertyGroup >
641641 <CMakeDefinitionSaveFile >$(IntermediateOutputPath)..\cmake.definitions</CMakeDefinitionSaveFile >
642+ <PYTHON Condition =" '$(PYTHON)' == '' " >python</PYTHON >
642643 </PropertyGroup >
643644 <Exec Command =" " $(PYTHON)" $(MSBuildThisFileDirectory)..\scripts\check-definitions.py " $(CMakeDefinitionSaveFile)" " $(DefineConstants)" " $(IgnoreDefineConstants)" " />
644645 </Target >
670671 </ItemGroup >
671672 <Import Project =" ILLink.targets" />
672673 <Import Project =" GenerateCompilerResponseFile.targets" />
673- </Project >
674+ </Project >
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ # resolve python-version to use
4+ if [ " $PYTHON " == " " ] ; then
5+ if ! PYTHON=$( command -v python2.7 || command -v python2 || command -v python || command -v python3)
6+ then
7+ echo " Unable to locate build-dependency python!" 1>&2
8+ exit 1
9+ fi
10+ fi
11+
12+ # validate python-dependency
13+ # useful in case of explicitly set option.
14+ if ! command -v $PYTHON > /dev/null
15+ then
16+ echo " Unable to locate build-dependency python ($PYTHON )!" 1>&2
17+ exit 1
18+ fi
19+
20+ export PYTHON
21+
322usage ()
423{
524 echo " Usage: sync [-p]"
You can’t perform that action at this time.
0 commit comments