-
Notifications
You must be signed in to change notification settings - Fork 710
cc-options do not get passed to GHC #4435
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
Comments
Note that in practice one needs to put the cc options both in |
Note that the same happens for linking: |
Note that
even if they do not have the same effect. |
Related issue #3700 Not passing extra-libraries to GHC as |
@bitonic If you're interested in solving this ticket I'd be happy to advise. |
I just run into this today when building haskell-opencv with cabal-install. I got the following error:
Note that After adding Note that I did get the warning: |
For the record,
I agree with Edward, "Unconditional passing of |
It's the same issue with It's going to be a bit easier in GHC 8.8: https://gitlab.haskell.org/ghc/ghc/issues/16477 |
Is this similar problem as with |
This issue was marked high-priority a while ago. Since then, there were a number of updates around passing options between cabal and GHC. To determine whether these updates had any impact in the issue, a minimal reproducer would be helpful. Do we have a minimal reproducer? |
cc-options
currently do not get seem to get passed to GHC. It would be useful if they were, since GHC is capable of compiling C/C++ files and now it might more than before given the addition ofaddForeignFile
in GHC 8.2, which lets users compile and link C/C++ files from TH.The text was updated successfully, but these errors were encountered: