On Fri, Jan 30, 2026 at 10:24:25PM +0000, Gavin Smith wrote:
> Here's an idea that only uses the configure-time settings.  It's done
> by setting the TEXINFO_XS environment variable in the environment for
> the tests.
> 
> +  if ($TEXINFO_XS eq 'requiredifconfigured') {
> +    $TEXINFO_XS = $disable_XS ? 'omit' : 'required';
> +  }
> +
>    if ($embedded_xs and $TEXINFO_XS eq 'omit') {
>      warn "ignoring TEXINFO_XS environment variable set to 'omit' ".
>           "for embedded Perl\n";
> 

I applied a variant of this, using 'requiredifenabled', and not leaving
'requiredifenabled' if XS is enabled.  This is only partial, but I think
that it is right.

I'll see if I can do something with build_c_code especially, it could be
possible, and if not possible for now, I'll add a comment to explain
what could be done later on.

-- 
Pat

Reply via email to