File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,16 @@ ifndef TARGET_NATIVE_ARCH
86
86
TARGET_NATIVE_ARCH := $(ARCH )
87
87
endif
88
88
89
+ PYTHONVERSION := $(shell expr `python -V 2>&1 | cut -f1 -d. | sed -e 's/Python //'`)
90
+
91
+ ifeq "$(PYTHONVERSION ) " "3"
92
+ PYTHON := python2
93
+ endif
94
+
95
+ ifndef PYTHON
96
+ PYTHON := python
97
+ endif
98
+
89
99
# The rule to create the LLVMBuild Makefile fragment as well as the llvm-config
90
100
# library table.
91
101
#
97
107
$(LLVMBuildMakeFrag ) : $(PROJ_SRC_ROOT ) /Makefile.rules \
98
108
$(PROJ_OBJ_ROOT ) /Makefile.config
99
109
$(Echo ) Constructing LLVMBuild project information.
100
- $(Verb ) $(LLVMBuildTool ) \
110
+ $(Verb ) $(PYTHON ) $( LLVMBuildTool ) \
101
111
--native-target " $( TARGET_NATIVE_ARCH) " \
102
112
--enable-targets " $( TARGETS_TO_BUILD) " \
103
113
--enable-optional-components " $( OPTIONAL_COMPONENTS) " \
You can’t perform that action at this time.
0 commit comments