1 python modules detection in config-ix relies on PYTHON_EXECUTABLE
2 --- llvm-8.0.1.src/CMakeLists.txt.orig 2019-09-15 20:47:11.346277376 +0200
3 +++ llvm-8.0.1.src/CMakeLists.txt 2019-10-05 16:14:04.833671630 +0200
5 set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL
6 "Enable per-target runtimes directory")
8 +# Verify that we can find a Python 2 interpreter. Python 3 is unsupported.
9 +# FIXME: We should support systems with only Python 3, but that requires work
11 +set(Python_ADDITIONAL_VERSIONS 2.7)
12 +include(FindPythonInterp)
13 +if( NOT PYTHONINTERP_FOUND )
15 +"Unable to find Python interpreter, required for builds and testing.
17 +Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
20 +if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 )
21 + message(FATAL_ERROR "Python 2.7 or newer is required")
24 # All options referred to from HandleLLVMOptions have to be specified
25 # BEFORE this include, otherwise options will not be correctly set on
29 include(HandleLLVMOptions)
31 -# Verify that we can find a Python 2 interpreter. Python 3 is unsupported.
32 -# FIXME: We should support systems with only Python 3, but that requires work
34 -set(Python_ADDITIONAL_VERSIONS 2.7)
35 -include(FindPythonInterp)
36 -if( NOT PYTHONINTERP_FOUND )
38 -"Unable to find Python interpreter, required for builds and testing.
40 -Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
43 -if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 )
44 - message(FATAL_ERROR "Python 2.7 or newer is required")
48 # LLVMBuild Integration