-
Notifications
You must be signed in to change notification settings - Fork 697
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
Pass command line arguments to hsc2hs using response files #5553
Conversation
Cabal/ChangeLog.md
Outdated
@@ -94,6 +94,8 @@ | |||
* Foreign libraries are now linked against the threaded RTS when the | |||
'ghc-options: -threaded' flag is used | |||
([#5431](https://github.com/haskell/cabal/pull/5431)). | |||
* Pass command line arguments to `hsc2hs` using response files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...when possible/supported... :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right. Fixed it :)
Merged, thanks! |
Pass command line arguments to hsc2hs using response files (cherry picked from commit f83aa4a)
Also cherry-picked into |
Great. Thank you :) |
note, this turns out to be incorrect as the version doesn't uniquely determine whether hsc2hs was built w/ support for response files; fix(es) underway |
Relevant GHC ticket: https://ghc.haskell.org/trac/ghc/ticket/15758 |
Please include the following checklist in your PR:
[ci skip]
is used to avoid triggering the build bots.Fixes #3122. Also see Trac #13896.
hsc2hs
has gained the ability to accept command line arguments via response files, which helpsto work around the limit on their length on Windows. This is the next step which updates Cabal to use a response file when invoking
hsc2hs
. Unfortunately, I have not yet tried to build the projects (this gist and ermine) mentioned in the issue. I will do it as soon as I get access to a Windows machine (or once I setup Vagrant or something). Note that this patch only changes the invocation logic forhsc2hs >= 0.68.4
which will be released with GHC 8.6.re:testing -- I tested this by hand and ensured that the arguments are indeed passed via a response file, and
hsc2hs
can successfully process aFoo.hsc
file. Also,tests the
hsc2hs
pre-processor and doesn't fail. I'm not sure if I should add another test./cc @bgamari @RyanGlScott @hvr