mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-30 06:40:53 +00:00
Look for Python 2 before Python 3 in CMakeLists.txt
All of LLVM's Python scripts only support Python 2 for widely understood reasons. Patch by Yonggang Luo. llvm-svn: 184732
This commit is contained in:
parent
98994226f3
commit
b24062a89a
@ -250,7 +250,8 @@ set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}")
|
||||
|
||||
include(HandleLLVMOptions)
|
||||
|
||||
# Verify that we can find a Python interpreter,
|
||||
# Verify that we can find a Python 2 interpreter. Python 3 is unsupported.
|
||||
set(Python_ADDITIONAL_VERSIONS 2.7 2.6 2.5 2.4)
|
||||
include(FindPythonInterp)
|
||||
if( NOT PYTHONINTERP_FOUND )
|
||||
message(FATAL_ERROR
|
||||
|
Loading…
Reference in New Issue
Block a user