Skip to content

Allow floating-point constants when cross-compiling#91

Open
sgillespie wants to merge 1 commit intohaskell:masterfrom
sgillespie:master
Open

Allow floating-point constants when cross-compiling#91
sgillespie wants to merge 1 commit intohaskell:masterfrom
sgillespie:master

Conversation

@sgillespie
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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