diff mbox series

configure: Fix ppc container_cross_cc substitution

Message ID 20220728183901.1290113-1-richard.henderson@linaro.org
State Superseded
Headers show
Series configure: Fix ppc container_cross_cc substitution | expand

Commit Message

Richard Henderson July 28, 2022, 6:39 p.m. UTC
When moving this code out of probe_target_compiler(), we failed to adjust
the variable in which the target is located, resulting in e.g.
powerpc64-linux-user-linux-gnu-gcc-10

Fixes: cd362defbbd ("tests/tcg: merge configure.sh back into main configure script")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paolo Bonzini July 28, 2022, 10:11 p.m. UTC | #1
Queued, thanks.

Paolo
diff mbox series

Patch

diff --git a/configure b/configure
index 2c19329d58..c4c02b8438 100755
--- a/configure
+++ b/configure
@@ -2028,7 +2028,7 @@  probe_target_compiler() {
         ;;
       ppc64|ppc64le)
         container_image=debian-powerpc-test-cross
-        container_cross_prefix=powerpc${1#ppc}-linux-gnu-
+        container_cross_prefix=powerpc${target_arch#ppc}-linux-gnu-
         container_cross_cc=${container_cross_prefix}gcc-10
         ;;
       riscv64)