Skip to content

Switch to enableNativeBignum = true when available #1783

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

Closed

Conversation

thomasjm
Copy link
Contributor

@thomasjm thomasjm commented Nov 16, 2022

Per the discussion on #1254. CC @hamishmack

AFAICT the current code is backwards -- it checks native bignum is possible, and if so it passes enableNativeBignum = false. This PR flips it the other way.

I've built my project's static executable with this and it seems to work fine. I'm not sure how to tell if a static executable is built using native bignum though.

EDIT: actually, I think it works! I tried building my executable with dynamic linking, both with and without this change. When I build with this change, the libgmp dependency disappears!

@thomasjm thomasjm force-pushed the enable-native-bignum branch from b732cf8 to 2e8ae5c Compare November 16, 2022 23:10
@hamishmack
Copy link
Collaborator

bors try

iohk-bors bot added a commit that referenced this pull request Nov 17, 2022
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Nov 17, 2022

try

Build failed:

@hamishmack
Copy link
Collaborator

Moved to #1784

@hamishmack hamishmack closed this Nov 18, 2022
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