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 639
639
<!-- Compiler Definition Verification -->
640
640
<PropertyGroup >
641
641
<CMakeDefinitionSaveFile >$(IntermediateOutputPath)..\cmake.definitions</CMakeDefinitionSaveFile >
642
+ <PYTHON Condition =" '$(PYTHON)' == '' " >python</PYTHON >
642
643
</PropertyGroup >
643
644
<Exec Command =" " $(PYTHON)" $(MSBuildThisFileDirectory)..\scripts\check-definitions.py " $(CMakeDefinitionSaveFile)" " $(DefineConstants)" " $(IgnoreDefineConstants)" " />
644
645
</Target >
670
671
</ItemGroup >
671
672
<Import Project =" ILLink.targets" />
672
673
<Import Project =" GenerateCompilerResponseFile.targets" />
673
- </Project >
674
+ </Project >
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
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
+
3
22
usage ()
4
23
{
5
24
echo " Usage: sync [-p]"
You can’t perform that action at this time.
0 commit comments