diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2013-01-30 04:07:37 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2013-01-30 04:07:37 +0000 |
commit | 26127bd746144842e245e7ecaa734a0219c34dbc (patch) | |
tree | cff007e79e0b948bad4ac1d877cfb92434b560b6 /llvm/projects | |
parent | afed1ddb406afe00cb05360c5b8a01e42db3250d (diff) | |
download | llvm-26127bd746144842e245e7ecaa734a0219c34dbc.zip llvm-26127bd746144842e245e7ecaa734a0219c34dbc.tar.gz llvm-26127bd746144842e245e7ecaa734a0219c34dbc.tar.bz2 |
build: add --with-python option
This adds a new --with-python option to allow configuration of the python binary
for building. If not specified, $PATH will be searched for common python binary
names (python, python2, python3). If specified, and the path is not executable,
it will attempt to search $PATH.
Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
Reviewed-by: Eric Christopher <echristo@gmail.com>, Daniel Dunbar <daniel@zuster.org>
llvm-svn: 173890
Diffstat (limited to 'llvm/projects')
-rw-r--r-- | llvm/projects/sample/Makefile.llvm.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/projects/sample/Makefile.llvm.rules b/llvm/projects/sample/Makefile.llvm.rules index 89b9e56..5d67461 100644 --- a/llvm/projects/sample/Makefile.llvm.rules +++ b/llvm/projects/sample/Makefile.llvm.rules @@ -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 |