All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Cc: qemu-devel@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [PATCH 2/4] tests/tcg/meson.build: introduce cc_alt (alternative cross compiler)
Date: Fri, 25 Sep 2026 16:52:15 +0100	[thread overview]
Message-ID: <araYr9QGHATaZm5N@redhat.com> (raw)
In-Reply-To: <b1e1ffe5-a7ce-44be-96ed-b425c15cb10c@oss.qualcomm.com>

On Fri, Sep 25, 2026 at 08:17:04AM -0700, Pierrick Bouvier wrote:
> On 9/25/2026 2:38 AM, Daniel P. Berrangé wrote:
> > On Thu, Sep 24, 2026 at 09:39:40PM +0000, Pierrick Bouvier wrote:
> >> This allows each target to provide an additional list of cross
> >> compilers to check. With this, we can detect default cc for common
> >> setups (debian/fedora/macos) without user having to provide a
> >> --cross-cc-* option.
> >>
> >> In addition, it allows us to pick up host compilers for various hosts.
> >> (debian and archlinux have $arch-linux-gnu-gcc installed
> >> with gcc package by default, but not fedora).
> >>
> >> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> >> ---
> >>  tests/tcg/meson.build | 46 +++++++++++++++++++++++++------------------
> >>  1 file changed, 27 insertions(+), 19 deletions(-)
> >>
> >> diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build
> >> index 0006d192cab..59ab73e1d10 100644
> >> --- a/tests/tcg/meson.build
> >> +++ b/tests/tcg/meson.build
> >> @@ -21,6 +21,7 @@ tcg_tests = {}
> >>  # {
> >>  #   'name_of_target': {
> >>  #     'cc': 'cross_compiler',
> >> +#     'cc_alt': ['list of alternative cross compilers', ...]
> >>  #     'cc_dockerfile': 'name_of_dockerfile',
> >>  #     'cc_feat_cflags': {
> >>  #       'name': ['feature cflags'],
> >> @@ -210,7 +211,7 @@ foreach target, plan: tcg_tests
> >>  
> >>    # return a clear error if user misspell a target entry
> >>    foreach key, _ : plan
> >> -    allowed = ['cc', 'cc_dockerfile', 'cc_feat_cflags',
> >> +    allowed = ['cc', 'cc_alt', 'cc_dockerfile', 'cc_feat_cflags',
> >>                 'folder', 'gdb_arch', 'gdb_feat_version', 'qemu', 'tests']
> >>      if key not in allowed
> >>        error('unknown tcg test plan entry \'' + key + '\' for target ' + target +
> >> @@ -218,15 +219,18 @@ foreach target, plan: tcg_tests
> >>      endif
> >>    endforeach
> >>  
> >> -  cc = find_program(plan['cc'], required : false)
> >> +  cc_list = [plan['cc']]
> >> +  if 'cc_alt' in plan
> >> +    cc_list += plan['cc_alt']
> >> +  endif
> > 
> > If you're combining these into a list anyway, why not just
> > have 'cc' be a list of CC names to begin with and not bother
> > with a separate 'cc_alt' field ?
> > 
> 
> It's just a semantic choice, since cc has to be provided in docker
> container, while cc_alt do not. I can add a comment if it makes sense
> for you with this explanation.

Ok, I don't mind, was just wondering if there was some reason I
was missing for the separation.


With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|



  reply	other threads:[~2026-09-25 15:52 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24 21:39 [PATCH 0/4] tests/tcg/meson.build: detect additional cross compilers Pierrick Bouvier
2026-09-24 21:39 ` [PATCH 1/4] tests/tcg/meson.build: report correct cc in summary Pierrick Bouvier
2026-09-25 16:02   ` Daniel P. Berrangé
2026-09-24 21:39 ` [PATCH 2/4] tests/tcg/meson.build: introduce cc_alt (alternative cross compiler) Pierrick Bouvier
2026-09-25  9:38   ` Daniel P. Berrangé
2026-09-25 15:17     ` Pierrick Bouvier
2026-09-25 15:52       ` Daniel P. Berrangé [this message]
2026-09-25 16:03   ` Daniel P. Berrangé
2026-09-24 21:39 ` [PATCH 3/4] tests/tcg: add alternative cross-compilers for fedora Pierrick Bouvier
2026-09-25  9:40   ` Daniel P. Berrangé
2026-09-25 15:20     ` Pierrick Bouvier
2026-09-25 15:54       ` Daniel P. Berrangé
2026-09-25 15:57         ` Pierrick Bouvier
2026-09-25 16:00           ` Daniel P. Berrangé
2026-09-25 16:03   ` Daniel P. Berrangé
2026-09-24 21:39 ` [PATCH 4/4] tests/tcg: add alternative cross-compilers for macos (homebrew) Pierrick Bouvier
2026-09-25 16:04   ` Daniel P. Berrangé
2026-09-25 22:17 ` [PATCH 0/4] tests/tcg/meson.build: detect additional cross compilers Pierrick Bouvier

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=araYr9QGHATaZm5N@redhat.com \
    --to=berrange@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=pbonzini@redhat.com \
    --cc=philmd@oss.qualcomm.com \
    --cc=pierrick.bouvier@oss.qualcomm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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.