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

Allow floating-point constants when cross-compiling #91

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

Conversation

sgillespie
Copy link

Here's a fix for #90. I'm not sure exactly what the consequences are for changing static int test_array to int test_array, but it DOES seem to work in my tests.

I've been able to successfully test cross building with text-icu with this nix flake.

@sgillespie sgillespie changed the title Allow floating-point constants in cross-compile Allow floating-point constants when cross-compiling Jul 12, 2024
@angerman
Copy link
Contributor

angerman commented Aug 6, 2024

@sgillespie do we know why there was static in there in the first place?
And even more crucially--I guess--, are we sure we don't break any existing code?
I will conceide that hsc2hs and cross has been rather ... shaky.

@sgillespie
Copy link
Author

sgillespie commented Aug 6, 2024

do we know why there was static in there in the first place?

My guess is it's what autoconf does

are we sure we don't break any existing code?

Nope, I've only confirmed it seems to work with text-icu

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