Skip to content

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