On 6/9/2026 5:18 PM, Richard Henderson wrote:
> On 6/9/26 14:47, Pierrick Bouvier wrote:
>> +++ b/tests/tcg/aarch64/meson.build
>> @@ -0,0 +1,213 @@
>> +cc = find_program('aarch64-linux-gnu-gcc', required : false)
>> +
>> +if not cc.found()
>> +  subdir_done()
>> +endif
> 
> The primary thing we lose here is the ability to use containers for the
> cross-compile.
>

It's definitely on the requirements list, but as listed in the cover
letter, out of the scope for current series.
> We detect cross-compilers in configure.  We currently write them to
> build/tests/tcg/${target}/config-target.mak.  It's not very meson to
> parse a file like that, but I imagine we could use scripts or meson
> variables somehow.
>

We can rewrite this mechanic in meson directly, similar to what we do
for gdb in this series. find_program from a list of known names, else
fallback to our cross containers which have a known and fixed setup.

The "build_container_and_run_compiler" logic will be in an external
script, appearing as a cross compiler itself, so meson role will be
limited to find a given program and test some flags.

> 
> r~


Reply via email to