mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
gdb: Add options to control the python version
The options are: --with-python2 --with-python3 --with-python-version Closes #4973
This commit is contained in:
parent
547335431b
commit
a970057f46
@ -44,6 +44,25 @@
|
||||
#
|
||||
# 3. Search for 'python3' and if not found search for 'python2'.
|
||||
#
|
||||
# User options to help find a suitable python:
|
||||
#
|
||||
# --with-python2 : name of a python2 command
|
||||
#
|
||||
# --with-python3 : name of a python2 command
|
||||
#
|
||||
# --with-python-version : name of a python command with a specific version
|
||||
#
|
||||
# For example `--with-python-version=python3.6
|
||||
#
|
||||
%if %{defined with_python2}
|
||||
%define gdb-python2 %{with_python2}
|
||||
%endif
|
||||
%if %{defined with_python3}
|
||||
%define gdb-python3 %{with_python3}
|
||||
%endif
|
||||
%if %{defined with_python_version}
|
||||
%define gdb-python-version %{with_python_version}
|
||||
%endif
|
||||
%if %{defined gdb-python2}
|
||||
%define gdb-enable-python %{gdb_python2}
|
||||
%else
|
||||
|
Loading…
x
Reference in New Issue
Block a user