Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 support for rts-options #434
base: main
Are you sure you want to change the base?
Add support for rts-options #434
Changes from all commits
da27c25
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Do these need to be quoted, like
-with-rtsopts='-s -N'
? Or perhaps the flag can be duplicated, like-with-rtsopts=-s -with-rtsopts=-N
.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.
From reading the motivation for this PR, this it's what I capture: Giving
--with-rtsopts
multiple times is not accumulative. That's the motivation for this PR in the first place.Regarding quoting, I assume that what this PR currently does works with Cabal. I haven't tried it again just yet, but pretty sure that I tried when I originally wrote this.
--with-rtsopts='-s -N'
may work as well, somebody would need to try. I'm fine with anything that works here, I'm not very opinionated on this.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.
I just tried a bunch of things. Here are my findings:
-with-rtsopts=-N
and-with-rtsopts -N
: Works as expected. Doesn't matter if you include the equals sign or not.-with-rtsopts=-N -K1k
: Fails because it tries to pass-K1k
to GHC rather than to the RTS.-with-rtsopts=-N -with-rtsopts=-K1k
: Clobbers the-N
flag. Same as setting-with-rtsopts=-K1k
.-with-rtsopts='-N'
and-with-rtsopts="-N"
: Fails because it doesn't interpret the quotes, which sends a literal'-N'
to the RTS.'-with-rtsopts=-N -K1k'
and"-with-rtsopts=-N -K1k"
: Works! It doesn't matter if you use single or double quotes.TL;DR: I'd recommend
"-with-rtsopts opt1 opt2 ..."
.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.
This Cabal issue is very related: haskell/cabal#4818
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.
Thanks @tfausak for doing all the heavy lifting.
I rarely talk about it in public, but I have had issues with RSI for several years now. when it flares up, I have to stay away from the computer. This is the reason why sometimes I'm less responsive than what I would hope to be.
The TL;DR of it is that I am away from the computer. We still need the read me update, change log entry and version bump. I can try to take care of it eventually. But if somebody wants to lend a hand, then that's still very much appreciated.
Releases are fully automated once the version bump hits main.
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.
I'd be happy to do the README.md update etc today.