]> git.pld-linux.org Git - packages/llvm.git/blob - llvm-python-modules.patch
- added python-modules patch (fix python modules detection)
[packages/llvm.git] / llvm-python-modules.patch
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
4 @@ -579,6 +579,22 @@
5  set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL
6    "Enable per-target runtimes directory")
7  
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
10 +# on LLDB.
11 +set(Python_ADDITIONAL_VERSIONS 2.7)
12 +include(FindPythonInterp)
13 +if( NOT PYTHONINTERP_FOUND )
14 +  message(FATAL_ERROR
15 +"Unable to find Python interpreter, required for builds and testing.
16 +
17 +Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
18 +endif()
19 +
20 +if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 )
21 +  message(FATAL_ERROR "Python 2.7 or newer is required")
22 +endif()
23 +
24  # All options referred to from HandleLLVMOptions have to be specified
25  # BEFORE this include, otherwise options will not be correctly set on
26  # first cmake run
27 @@ -598,22 +614,6 @@
28  
29  include(HandleLLVMOptions)
30  
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
33 -# on LLDB.
34 -set(Python_ADDITIONAL_VERSIONS 2.7)
35 -include(FindPythonInterp)
36 -if( NOT PYTHONINTERP_FOUND )
37 -  message(FATAL_ERROR
38 -"Unable to find Python interpreter, required for builds and testing.
39 -
40 -Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
41 -endif()
42 -
43 -if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 )
44 -  message(FATAL_ERROR "Python 2.7 or newer is required")
45 -endif()
46 -
47  ######
48  # LLVMBuild Integration
49  #
This page took 0.081322 seconds and 4 git commands to generate.