[wip] Remove inferred cabal include paths#80
[wip] Remove inferred cabal include paths#80corngood wants to merge 1 commit intoeagletmt:masterfrom
Conversation
|
How on earth can you even build agains multiple sandboxes O_o? Can you link me to some docs? But it's nice that we're handling that correctly (by accident) I guess :) |
|
Not multiple sandboxes in a single build, but having multiple dist-sandbox directories because at some point it's been built to different sandboxes. This can happen after changing cabal or ghc versions without cleaning. I imagine it can also happen if you use add-source from multiple sandboxes.
|
If you've build a cabal project against multiple sandboxes, you'll end up with all of their cabal_macros.h headers included with -optP, which leads to errors like:
I believe it's all handled correctly in ghc-mod now with cabal-helper, and I haven't had any problems after removing the include paths.
I haven't extensively tested this, tracked down the ghc-mod version requirement (I'm using HEAD), or updated tests, so [wip].
Any thoughts?