-
Notifications
You must be signed in to change notification settings - Fork 696
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
v2-cabal: Don't rebuild dependencies when -O0
or -fno-code
is supplied as --ghc-options
#7368
Comments
What's wrong with |
Ah, great, this works! So this means something like |
Subsumed by #3579? edit: actually this should be possible already by specifying the option for every local package, like in #3579 (comment), just a bit tedious. @andreasabel does that work for you? |
Not sure, I how would that look like? For comparison, with v1-cabal it is:
|
@andreasabel: any news here? |
Like the comment I mentioned ( #3579 (comment) ), so local-package-1
ghc-options: -fno-code
local-package-2
ghc-options: -fno-code Not that convenient but it works. If you put that configuration in another |
This does not work, or maybe something is missing. Can you give full instructions?
This reports, before starting the build:
Further, the |
assuming
|
This is documented: https://cabal.readthedocs.io/en/3.4/cabal-project.html#cmdoption-builddir Though I don't know why it can't be specified in Making it give a warning or error would be nice |
Thanks. But to the original issue: With
and
It does indeed work. Fantastic!
There are 404 errors about missing |
After #7973 |
It seems that
cabal v2-build
wants to rebuild all dependencies when I add--ghc-options=-O0
or...=-fno-code
to e.g. just check compilability after a change.I don't understand the rationale behind this behavior.
Is there a workaround? I'd like to alternate compilation between
-fno-code
(for just type-checking),-O0
(for running a first few test), and-O1
(for thorough testing with a large testsuite).See also #2442 and #1176.
Example see #1176 (comment).
The text was updated successfully, but these errors were encountered: