Skip to content

Rebase #5440: Respect ghc-options and with-gcc when compiling C sources - #7874

Closed
jberryman wants to merge 1 commit into
haskell:masterfrom
jberryman:syntheorem-with-gcc-fix
Closed

jberryman wants to merge 1 commit into
haskell:masterfrom
jberryman:syntheorem-with-gcc-fix

Conversation

@jberryman

Copy link
Copy Markdown

This is #5440 rebased on master

I don't understand the patch well enough to really help further right now. Please close if this isn't mergeable.

This fix allows users to override the C/C++ compiler, either by passing
--with-gcc to configure or adding -pgmc to ghc-options in their Cabal
file.

Tested manually with a project using C++ sources that require a more
recent version of clang than the default install (macOS). Inspected the
output of `Setup.hs build -v` to confirm that the correct arguments are
being passed to GHC when compiling the C++ sources.

Resolves: haskell#4439
@Mikolaj

Mikolaj commented Dec 21, 2021

Copy link
Copy Markdown
Member

@jberryman: thank you so much!

Any volunteer to add a simple test for that?

@Mikolaj Mikolaj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but I think we really need to test this. Ideally by adding a simple test. Trying out reproducing problems that people had that prompted this would would also be great. Perhaps we can ask them to try out the branch?

@Mikolaj

Mikolaj commented Dec 27, 2021

Copy link
Copy Markdown
Member

I did ask them. Let's wait some longer, given that it's Christmas and New Year.

mergify Bot added a commit that referenced this pull request Jan 12, 2022
@Mikolaj

Mikolaj commented Jan 12, 2022

Copy link
Copy Markdown
Member

@jberryman: thank you for #7900, which is now merged, which ends the saga! Please, everybody, test and reopen if anything doesn't work as expected.

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.

3 participants