PerlFFI / FFI-Platypus

Write Perl bindings to non-Perl libraries with FFI. No XS required.
91 stars 24 forks source link

compute default abi as fallback #301

Closed plicease closed 3 years ago

plicease commented 3 years ago

This would probably work around #285.

The code was designed to work with FFI_DEFAULT_ABI if none are detected. Detection could fail if the enum isn't parsed correctly. The test suite clearly expects at least a default abi to be defined. Both of these can't be the right thing to do because we get a test fail when we can't detect any ABIs.

The cases where you actually want to select an ABI other than the default on any platform other than MSWin32 32bit approaches zero, so this PR is maybe reasonable.

On the other hand maybe we should fail in the build step with the appropriate diagnostic.