Open llvmbot opened 11 years ago
I have confirmed on trunk that --with-python is not propagated to BuildToos/Makefile.config.
I think configure--with-python may be aware of $PYTHON, rather than propagating --with-python to BuildTools/configure.
To detect python,
1) use --with-python, if specified. 2) consider and honor $PYTHON. 3) detect appropriate version of python in configure.
FYI, I suppose Daniel is working for python scripts to make compatible to py3.
Extended Description
When configuring LLVM 3.2 for cross compilation, additional flags may be required (such as --with-python=/usr/bin/python2.7). The generated Makefile contains a further configure call in cross-compile-build-tools, but this configure is not aware of the --with-python specified on the command line and fails.
Reproduce:
Make will run further configures, which will be unable to find a working python and fail.