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

Fix how cpp-options are passed to ghci wrt #5532 #5608

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

hasufell
Copy link
Contributor

@hasufell hasufell commented Aug 23, 2021

-DFOO options can be passed directly to ghc, but
cpp-options may include flags for the preprocessor,
such as -std=c99, so we need to pass it via -optP.

Fixes #5532

@fendor

-DFOO options can be passed directly to ghc, but
cpp-options may include flags for the preprocessor,
so we need to pass it via -optP.
@hasufell
Copy link
Contributor Author

Is there anything missing here?

@hasufell hasufell mentioned this pull request May 9, 2022
Copy link
Collaborator

@nh2 nh2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks right to me. Haskell-C-preprocessor options should not be passed to GHC without -optP.

@hasufell
Copy link
Contributor Author

@mpilgrem

@mpilgrem
Copy link
Member

It looks right to me too. I'll merge it.

@mpilgrem mpilgrem merged commit b286004 into commercialhaskell:master Jul 25, 2022
mpilgrem added a commit that referenced this pull request Jul 25, 2022
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.

Stack repl fails with cpp-option -std=c99
3 participants