diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2021-07-20 11:02:27 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2021-07-20 11:24:39 +0800 |
commit | e695f0101a8cacbc29353c5a000731e50b2627e6 (patch) | |
tree | 4fcf9e8211ddce7332067444779c98becad940da /gcc | |
parent | 1c0d49b9ce9ab011fa77d4eac689fa1a038123ef (diff) | |
download | gcc-e695f0101a8cacbc29353c5a000731e50b2627e6.zip gcc-e695f0101a8cacbc29353c5a000731e50b2627e6.tar.gz gcc-e695f0101a8cacbc29353c5a000731e50b2627e6.tar.bz2 |
RISC-V: Detect python and pick best one for calling multilib-generator
gcc/
* config.gcc (riscv*-*-*): Detect which python is available.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config.gcc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 93e2b32..3df9b52 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4730,9 +4730,10 @@ case "${target}" in echo "--with-multilib-list= can't used with --with-multilib-generator= at same time" 1>&2 exit 1 fi + PYTHON=`which python || which python3 || which python2` case "${target}" in riscv*-*-elf*) - if ${srcdir}/config/riscv/multilib-generator \ + if ${PYTHON} ${srcdir}/config/riscv/multilib-generator \ `echo ${with_multilib_generator} | sed 's/;/ /g'`\ > t-multilib-config; then |