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

hsc2hs shouldn't call cc directly #66

Open
bgamari opened this issue Jan 18, 2022 · 0 comments
Open

hsc2hs shouldn't call cc directly #66

bgamari opened this issue Jan 18, 2022 · 0 comments

Comments

@bgamari
Copy link
Contributor

bgamari commented Jan 18, 2022

Currently hsc2hs calls cc directly when it needs to compile C. However, in general it doesn't have enough information about the build context to do so robustly, especially when GHC becomes runtime-retargetable (since the choice of which C compiler is used is going to depend upon the GHC profile). This is already starting to affect us as hsc2hs isn't benefitting from upstream GHC changes like https://gitlab.haskell.org/ghc/ghc/-/issues/20162.

I propose that hsc2hs should consistently rely on ghc to invoke the C compiler, centralizing build configuration in GHC.

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

1 participant