Skip to content

Conversation

@jberryman
Copy link

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
Copy link
Member

Mikolaj commented Dec 21, 2021

@jberryman: thank you so much!

Any volunteer to add a simple test for that?

Copy link
Member

@Mikolaj Mikolaj left a comment

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
Copy link
Member

Mikolaj commented Dec 27, 2021

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
Copy link
Member

Mikolaj commented Jan 12, 2022

@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