All of
 help / color / mirror / Atom feed
From: "Alex Bennée" <>
	"Alex Bennée" <>
Subject: [RFC PATCH] tests/tcg/ tweak quoting of target_compiler
Date: Fri, 21 May 2021 17:18:30 +0100	[thread overview]
Message-ID: <> (raw)

If you configure the host compiler with a multi-command stanza like:

  --cc="ccache gcc"

then the machinery falls over with confusion. Work around
this by ensuring we correctly quote so where we need a complete
evaluation we get it. Of course the has() check needs single variable
so we need to unquote that. This does mean it essentially checks that
just the ccache command exits but if we got past that step we still
check the compiler actually does something.

Signed-off-by: Alex Bennée <>
Cc: Thomas Huth <>
 tests/tcg/ | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/tcg/ b/tests/tcg/
index ed6492ce59..aa7c24328a 100755
--- a/tests/tcg/
+++ b/tests/tcg/
@@ -222,10 +222,10 @@ for target in $target_list; do
-  if eval test "x\${cross_cc_$arch}" != xyes; then
-      eval "target_compiler=\${cross_cc_$arch}"
+  if eval test "x\"\${cross_cc_$arch}\"" != xyes; then
+      eval "target_compiler=\"\${cross_cc_$arch}\""
-      if has "$target_compiler"; then
+      if has $target_compiler; then
           if test "$supress_clang" = yes &&
                   $target_compiler --version | grep -qi "clang"; then

                 reply	other threads:[~2021-05-21 16:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \
    --subject='Re: [RFC PATCH] tests/tcg/ tweak quoting of target_compiler' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.