bincompat_options#

Return the compile-time options that affect binary compatibility.

Synopsis#

use Config;
my @opts = Config::bincompat_options();

What you get back#

A list of option names (USE_64_BIT_INT, USE_PERLIO, and so on) representing decisions baked into the interpreter that would break loading of incompatibly-built XS binaries.

Examples#

use Config;
print "64-bit ints\n"
    if grep { $_ eq 'USE_64_BIT_INT' } Config::bincompat_options();

Differences from upstream#

  • The list reports the options that truthfully apply to pperl’s build. Upstream-specific switches that do not exist in pperl are omitted rather than forged.