8000 Remove XS dependency by FGasper · Pull Request #19 · danaj/Math-Prime-Util · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove XS dependency #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Remove XS dependency #19

wants to merge 1 commit into from

Conversation

FGasper
Copy link
@FGasper FGasper commented Dec 28, 2016

A first stab at removing M::P::U’s dependency on XS.

This implements a fallback so that it tries Bytes::Random::Secure first, then falls back to B::R::S::Tiny.

Maybe B::R::S::Tiny should be a requirement?

I didn’t do anything about the warning when using the Pure Perl variant.


my %require_mpugmp;
my $have_gmp = check_lib(lib => 'gmp', header => 'gmp.h');
my $have_gmp = $compiler_available && check_lib(lib => 'gmp', header => 'gmp.h');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look like it got tested; changing from use Devel::CheckLib to require loses the import, so you'd need to add the package in calling the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0