build: add --with-python option
[oota-llvm.git] / projects / sample / Makefile.llvm.rules
index 89b9e56ef416d99077704b37aed258f53efd58d3..5d674612857bf73cfb5be88fc354c1d2e3891938 100644 (file)
@@ -745,7 +745,7 @@ ObjectsBC := $(BaseNameSources:%=$(ObjDir)/%.bc)
 #----------------------------------------------------------
 
 ifeq (-mingw32,$(findstring -mingw32,$(BUILD_TRIPLE)))
-  ECHOPATH := $(Verb)python -u -c "import sys;print ' '.join(sys.argv[1:])"
+  ECHOPATH := $(Verb)$(PYTHON) -u -c "import sys;print ' '.join(sys.argv[1:])"
 else
   ECHOPATH := $(Verb)$(ECHO)
 endif