mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-28 02:34:52 +00:00
Use Python3_EXECUTABLE instead of PYTHON_EXECUTABLE
Also drop the unnecessary python version variables. If there are multiple python versions installed, the wrong one may be picked. PYTHON_EXECUTABLE tries to avoid that problem, but the correct way to spell this nowadays is Python3_EXECUTABLE.
This commit is contained in:
parent
724af11e09
commit
61f67fb135
1 changed files with 1 additions and 3 deletions
|
@ -49,7 +49,7 @@ cd llvm
|
|||
%if 0%{?fedora} || 0%{?rhel} > 9
|
||||
-DPPC_LINUX_DEFAULT_IEEELONGDOUBLE=ON \
|
||||
%endif
|
||||
-DPYTHON_EXECUTABLE=%{__python3} \
|
||||
-DPython3_EXECUTABLE=%{__python3} \
|
||||
%if %{with compat_build}
|
||||
-DLLVM_INCLUDE_TESTS:BOOL=OFF \
|
||||
-DCLANG_INCLUDE_TESTS:BOOL=OFF \
|
||||
|
@ -195,8 +195,6 @@ cd llvm
|
|||
-DLLDB_DISABLE_CURSES:BOOL=OFF \
|
||||
-DLLDB_DISABLE_LIBEDIT:BOOL=OFF \
|
||||
-DLLDB_DISABLE_PYTHON:BOOL=OFF \
|
||||
-DPYTHON_VERSION_MAJOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.major)") \
|
||||
-DPYTHON_VERSION_MINOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.minor)") \
|
||||
%ifarch ppc64le
|
||||
-DLLDB_TEST_USER_ARGS=--skip-category=watchpoint \
|
||||
%endif
|
||||
|
|
Loading…
Reference in a new issue