From 226b0401c7930e00c446a932e682e81c627c2d46 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Fri, 2 Aug 2024 11:47:01 +0100 Subject: [PATCH] Filter out -dinitial-unique and -dunique-increment from hash flags These options shouldn't affect the output of the package and hence shouldn't affect the store hash of a package. (cherry picked from commit 4ce7bc4f9719e22e8b6dd90890a3cfcddbb862b9) --- Cabal/src/Distribution/Simple/Program/GHC.hs | 2 ++ changelog.d/pr-10240 | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 changelog.d/pr-10240 diff --git a/Cabal/src/Distribution/Simple/Program/GHC.hs b/Cabal/src/Distribution/Simple/Program/GHC.hs index 71a32c4f50c..8bd18d31298 100644 --- a/Cabal/src/Distribution/Simple/Program/GHC.hs +++ b/Cabal/src/Distribution/Simple/Program/GHC.hs @@ -320,6 +320,8 @@ normaliseGhcArgs (Just ghcVersion) PackageDescription{..} ghcArgs , "-ddpr-cols" , "-dtrace-level" , "-fghci-hist-size" + , "-dinitial-unique" + , "-dunique-increment" ] , from [8, 2] ["-fmax-uncovered-patterns", "-fmax-errors"] , from [8, 4] $ to [8, 6] ["-fmax-valid-substitutions"] diff --git a/changelog.d/pr-10240 b/changelog.d/pr-10240 new file mode 100644 index 00000000000..9bd05100ab7 --- /dev/null +++ b/changelog.d/pr-10240 @@ -0,0 +1,13 @@ +synopsis: Filter out dinitial-unique and dunique-increment from package hash +packages: cabal-install +prs: #10122 + +description: { + +`-dinitial-unique` and `-dunique-increment` are now filtered out when computing the +store hash of a package. + +These options shouldn't affect the output of the package and hence +shouldn't affect the store hash of a package. + +}