All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: gustavo.romero@protonmail.com, david@gibson.dropbear.id.au,
	qemu-ppc@nongnu.org, qemu-devel@nongnu.org,
	Gustavo Romero <gromero@linux.ibm.com>
Subject: Re: [PATCH] configure: Fail when specified cross compiler cannot be found
Date: Fri, 18 Dec 2020 11:57:49 +0000	[thread overview]
Message-ID: <87mtybqqa8.fsf@linaro.org> (raw)
In-Reply-To: <9d350192-db21-82ea-1246-8f70e5c89b36@redhat.com>


Paolo Bonzini <pbonzini@redhat.com> writes:

> On 17/12/20 18:56, Alex Bennée wrote:
>> To be honest at the moment the information is a little hidden at the top
>> of the output. It would be nice if we could teach meson to echo it in
>> it's nice coloured output.
>> 
>> Paolo,
>> 
>> Any ideas for the cleanest way to do that?
>
> The code in configure is pretty small:
>
> (for i in $cross_cc_vars; do
>    export $i
> done
> export target_list source_path use_containers
> $source_path/tests/tcg/configure.sh)
>
> configure would place the cross-cc variables (which are really just 
> command line options) in a file, something like config-cross-cc.mak, and 
> the Meson translation of the above would be
>
> env = environment()
> foreach k, v : keyval.load(meson.current_build_dir() / 
> 'config-cross-cc.mak')
>    env.set(k, v)
> endforeach
> env.set('target_list', ','.join(target_dirs))
> env.set('source_path', meson.source_root())
> env.set('use_containers',
>          'CROSS_CC_CONTAINERS' in config_host ? 'yes' : 'no')
> message(run_command(files('tests/tcg/configure.sh'), env: env).stdout())
>
> For a bit more polish, one could make tests/tcg/configure.sh print the 
> result in keyval format, parse it back from meson as a dictionary with 
> keyval.load(), and pass the result to summary().

Don't we already have this in the form of tests/tcg/config-$TARGET.mak?
Shouldn't we just injest that into meson after configure.sh has run?

>
> Paolo


-- 
Alex Bennée


  reply	other threads:[~2020-12-18 12:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-16  1:36 [PATCH] configure: Fail when specified cross compiler cannot be found Gustavo Romero
2020-12-16 10:51 ` Alex Bennée
2020-12-17 16:55   ` Gustavo Romero
2020-12-17 17:56     ` Alex Bennée
2020-12-18 10:05       ` Paolo Bonzini
2020-12-18 11:57         ` Alex Bennée [this message]
2020-12-19 12:11           ` Paolo Bonzini

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=87mtybqqa8.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=david@gibson.dropbear.id.au \
    --cc=gromero@linux.ibm.com \
    --cc=gustavo.romero@protonmail.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.