Skip to content
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

Setup.hs foils cross-compilation #42

Closed
ariep opened this issue Oct 20, 2018 · 1 comment
Closed

Setup.hs foils cross-compilation #42

ariep opened this issue Oct 20, 2018 · 1 comment

Comments

@ariep
Copy link

ariep commented Oct 20, 2018

entropy currently uses a custom Setup.hs to decide whether it can use RDRAND. This means that it cannot be cross-compiled.

From the comments in the cabal file I conclude that it's not possible to make the build-type depend on a flag, is that correct? Having a flag to override this behaviour would help.

Currently the workaround is to locally modify this package (to have build-type: Simple), but that's rather inconvenient.

@TomMD
Copy link
Collaborator

TomMD commented Oct 21, 2018

I agree it is inconvenient. Is there any "cross compilation" flag in cabal's build info? If so we could "do the right thing" inside of Setup.hs.

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

No branches or pull requests

2 participants