add the applicable new (version 9.10) GHC flags to normaliseGhcArgs (backport #10014) #10106
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.
Relevant issue #9729 (blocked by this PR)
Overview
This PR is concerned with updating the
Distribution.Simple.Program.GHC
module to include flags added since (inclusively) 9.2 intonormalizeGHCArgs
and remove flags that have since removed inrenderGhcOptions
.The file didn't seem to be updated since ghc 8.10. I hope to address that in this PR.
Actionable flags, as far as I can tell, are (see commit message):
-fdiagnostics-as-json
(changes the format GHC outputs its diagnostics)-fprint-error-index-lists=<always|never|auto>
(changes the way GHC displays compile time)-fbreak-points
(enables/disables break-points in GHCi)-dipe-stats
(dumps information about which info tables have IPEinformation)
-ffamily-application-cache
(only changes the speed of the compiler)-fprint-redundant-promotion-ticks
-fshow-error-context
-funoptimized-core-for-interpreter
(only applies to GHCi)For a diff of flags between GHC 8.10 and 9.10, see #10014 (comment)
QA notes
cabal-install
with GHC 9.8 and newer must not list the cabal equivalent of the GHCsplit-objs
flag, before GHC 9.8 it must list itchanging either of the flags:
-fdiagnostics-as-json
-fprint-error-index-lists
-fbreak-points
-dipe-stats
-ffamily-application-cache
-fprint-redundant-promotion-ticks
-fshow-error-context
-funoptimized-core-for-interpreter
must not cause recompilation
Template Α: This PR modifies behaviour or interface
Include the following checklist in your PR:
The documentation has been updated, if necessary.This is an automatic backport of pull request #10014 done by [Mergify](https://mergify.com).