]> git.lizzy.rs Git - rust.git/commit
Fail to configure without an LLVM-friendly Python
authorBen Striegel <ben.striegel@gmail.com>
Tue, 26 Jun 2012 00:18:09 +0000 (20:18 -0400)
committerBen Striegel <ben.striegel@gmail.com>
Tue, 26 Jun 2012 00:18:09 +0000 (20:18 -0400)
commit6322eda35ca0e5d05247eccfa820f0aa730591ce
tree2b17bda0f63527792705794d397644cd9e9316b3
parent6e6d20a40f86d1f8d8dd8d28c882378218a040c9
Fail to configure without an LLVM-friendly Python

This addresses issue #2720. According to LLVM's documentation, it requires a
version of Python between 2.4 and 2.7. Without the proper version, LLVM fails
to build with cryptic errors. Prior to this commit, the configure script
checked for the `python` command in the environment, but didn't actually check
the version, which can cause problems e.g. on Linux distros where the default
is Python 3. Now the configure script always prefers to select a more specific
version of Python when available, in the order `python2.7` > `python2.6` >
`python2` > `python`, and will always check to ensure that the interpreter's
version is in the correct range.
configure