tests/tcg/configure.sh: tweak quoting of target_compiler
commit31fa83bd2b3293227c50a646ee74ded6b70b87f4
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 27 May 2021 16:03:16 +0000 (27 17:03 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 7 Jun 2021 13:42:47 +0000 (7 14:42 +0100)
tree2fa63ed3baf1d884fb961df1a9904da89e0afe6d
parent63de93530fe7d56dc0ba8b95f1dc8ba43ec237f3
tests/tcg/configure.sh: tweak quoting of target_compiler

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

  --cc="ccache gcc"

then the configure.sh 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 <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Message-Id: <20210527160319.19834-4-alex.bennee@linaro.org>
tests/tcg/configure.sh