-
Notifications
You must be signed in to change notification settings - Fork 843
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
Add configure-options
option
#1438
Comments
I'm in favour of something akin to:
as mentioned by @mgsloan in #1341 . I found these threads after attempting to invoke |
@fosskers This'll be addressed along with the revamp of ghc-options, extra-deps, and implementation of custom snapshots. Other things have been taking priority over that, though, so it may be a while yet before that happens. There's no strong reason to block implementation of this on those changes, though, so marking this "awaiting PR", feel free to implement. |
Thank you. In the interim, is there some other hacky way to use |
Hmm, does |
If I already have an established Testing And the same after I completely wipe my For reference, after wiping those directories and trying to build fresh, the command I use is: So unless I'm doing something wrong, I have to say that this not working is probably a bug with |
The |
After making a completely clean stack environment, and putting the following in my ghc-options:
"*": -split-objs
apply-ghc-options: everything ...among the usual settings, then building my project with |
Hmm, I'm not sure then, sorry. Perhaps |
I'd just like to add here that this would go a long way toward filling the gap left by MinGHC's death. When configuring a Windows system via Cygwin SSH, I had to go through the steps in #1714 to get a working |
Is it possible right now to pass a --with-gcc option to the configure process? |
Bumping to P1 due to popularity of this issue. |
This is now possible with #2264. |
Marking this as blocked on the unification of flags and ghc-options - #849 |
Add configure-options settings (fixes #1438)
I'm opening this issue discuss the possibility of adding a
configure-options
option, to add arguments passed toSetup.hs configure
, as mentioned in #846 (among others).I'm broadly in favour of the idea, with the following misgivings and design considerations.
Stack may not be using the Cabal library forever, in which case these options would no longer work. But moving away from Cabal is a ways off (if ever), and I think in that case we'd just bite the bullet and remove this option.
Some configure options must apply to all packages in a snapshot (e.g.
--enable-library-profiling
needs all packages to be built with that flag, and likely similar for--enable-split-objs
), while others will work when only only to local packages or to targets.ghc-options
can already suffer from similar problems and they're not handled very well right now, but it's more acute withconfigure-options
. We'd need to be able to indicate which packages the configure-options apply to (e.g., all packages including snapshots, all local packages, or specific packages).The alternative is that, when need for a new configure option is identified (e.g. in #1284 and #593), we add it to Stack explicitly. Since configure arguments will normally fall into two or three categories, it should be possible to modify the current design to make it quite easy to add these whenever the need comes up.
For either approach, Stack's current design doesn't handle the snapshots case very well, but extensible snapshots (#863, #1265) should fix that.
ping @mgsloan and @snoyberg
The text was updated successfully, but these errors were encountered: