Re: [committed] RISC-V: Detect python and pick best one for calling multilib-generator

2021-07-21 Thread Andreas Schwab
On Jul 21 2021, Kito Cheng wrote: >> Additionally, you will get extra >> output on stderr when one of the commands is not found. > > I tried PYTHON will get an empty string if all of those are not found, > no stderr from which command. $ PATH=/usr/bin which foo >/dev/null which: no foo in (/usr/b

Re: [committed] RISC-V: Detect python and pick best one for calling multilib-generator

2021-07-21 Thread Kito Cheng via Gcc-patches
> > diff --git a/gcc/config.gcc b/gcc/config.gcc > > index 93e2b3219b9..3df9b52cf25 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= a

Re: [committed] RISC-V: Detect python and pick best one for calling multilib-generator

2021-07-20 Thread Andreas Schwab
On Jul 20 2021, Kito Cheng wrote: > diff --git a/gcc/config.gcc b/gcc/config.gcc > index 93e2b3219b9..3df9b52cf25 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-

[committed] RISC-V: Detect python and pick best one for calling multilib-generator

2021-07-19 Thread Kito Cheng
gcc/ * config.gcc (riscv*-*-*): Detect which python is available. --- gcc/config.gcc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index 93e2b3219b9..3df9b52cf25 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4730,9 +4730,10 @@