-
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
+RTS .. -RTS sections in ghc-options shouldn't affect the artifact hash #5575
Comments
Actually, I don't think this is a matter of "RTS options shouldn't affect the hash" as, for executables, they definitely do affect the build output. This actually seems more related to the matter is discussed with @ezyang at some point on whether commandline flags (like I'm pretty sure there's already a feature request for this somewhere and that'd obsolete the entire difficult task of somehow distinguishing some RTS options as safe and others as not. |
Hmm, I don't see how they do. This is about RTS options passed to the GHC executable itself via Though if |
oh, I misinterpreted the problem! This should actually be fairly trivial. It's simply a matter of modifying normaliseArgs (
If anyone else takes it up they should dive into the GHC 8.6 code and check if any flags were added/changed while they're at it, so the supported GHC range can be expanded to include 8.6.1. |
@23Skidoo Should work properly with the PR I just created, but I don't have time to do a lot of testing, so please try dogfooding that one. |
Great, thanks, will do. |
I tested #5589 with GHC 8.4.1 on a private project, and it seems to work. |
Cleans up the `-Werror` check, adds GHC 8.6.1 support and also filters RTS flags, fixing #5575
If I build a project with
new-build
and then donew-clean && new-build --ghc-options="+RTS -A32M"
, it will try to rebuild all dependencies as well. This is not necessary and shouldn't happen.The text was updated successfully, but these errors were encountered: