]> git.pld-linux.org Git - packages/llvm.git/blob - llvm-python-modules.patch
add R: llvm-polly-devel to clang-devel
[packages/llvm.git] / llvm-python-modules.patch
1 --- llvm-9.0.0.src/CMakeLists.txt.orig  2019-08-26 14:31:37.000000000 +0200
2 +++ llvm-9.0.0.src/CMakeLists.txt       2019-12-04 00:12:17.536142461 +0100
3 @@ -612,6 +612,18 @@
4  set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL
5    "Enable per-target runtimes directory")
6  
7 +include(FindPythonInterp)
8 +if( NOT PYTHONINTERP_FOUND )
9 +  message(FATAL_ERROR
10 +"Unable to find Python interpreter, required for builds and testing.
11 +
12 +Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
13 +endif()
14 +
15 +if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 )
16 +  message(FATAL_ERROR "Python 2.7 or newer is required")
17 +endif()
18 +
19  # All options referred to from HandleLLVMOptions have to be specified
20  # BEFORE this include, otherwise options will not be correctly set on
21  # first cmake run
22 @@ -642,18 +654,6 @@
23  
24  include(HandleLLVMOptions)
25  
26 -include(FindPythonInterp)
27 -if( NOT PYTHONINTERP_FOUND )
28 -  message(FATAL_ERROR
29 -"Unable to find Python interpreter, required for builds and testing.
30 -
31 -Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
32 -endif()
33 -
34 -if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 )
35 -  message(FATAL_ERROR "Python 2.7 or newer is required")
36 -endif()
37 -
38  ######
39  # LLVMBuild Integration
40  #
This page took 0.025088 seconds and 3 git commands to generate.