On Mon, 2026-01-19 at 22:13 -0500, Matt Whitlock wrote:
> On Sunday, 18 January 2026 03:59:56 EST, James Le Cuirot wrote:
> > +meson_add_machine_file() {
> > +   local file=${T}/meson.${CHOST}.${ABI}.${1}.ini
> > +   cat > "${file}" || die
> > +
> > +   if tc-is-cross-compiler || [[ ${ABI} != "${DEFAULT_ABI}" ]]; then
> > +           emesonargs+=( --cross-file "${file}" )
> > +   else
> > +           emesonargs+=( --native-file "${file}" )
> > +   fi
> > +}
> 
> You are naming the custom native file inappropriately. The custom native
> file should be named "${T}/meson.${CBUILD}.${1}.ini" (${CBUILD} instead of
> ${CHOST}, and no ${ABI}).

It will only use --native-file when CHOST == CBUILD. It doesn't really matter
whether the ABI is included or not, the most important thing is to ensure that
the filename is unique.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to