|
10 | 10 | -- * the package tarball |
11 | 11 | -- * the ids of all the direct dependencies |
12 | 12 | -- * other local configuration (flags, profiling, etc) |
| 13 | +-- |
| 14 | +-- See 'PackageHashInputs' for a detailed list of what determines the hash. |
13 | 15 | module Distribution.Client.PackageHash |
14 | 16 | ( -- * Calculating package hashes |
15 | 17 | PackageHashInputs (..) |
@@ -38,7 +40,8 @@ import Distribution.Package |
38 | 40 | , mkComponentId |
39 | 41 | ) |
40 | 42 | import Distribution.Simple.Compiler |
41 | | - ( CompilerId |
| 43 | + ( AbiTag (..) |
| 44 | + , CompilerId |
42 | 45 | , DebugInfoLevel (..) |
43 | 46 | , OptimisationLevel (..) |
44 | 47 | , PackageDB |
@@ -191,6 +194,7 @@ type PackageSourceHash = HashValue |
191 | 194 | -- package hash. |
192 | 195 | data PackageHashConfigInputs = PackageHashConfigInputs |
193 | 196 | { pkgHashCompilerId :: CompilerId |
| 197 | + , pkgHashCompilerABI :: AbiTag |
194 | 198 | , pkgHashPlatform :: Platform |
195 | 199 | , pkgHashFlagAssignment :: FlagAssignment -- complete not partial |
196 | 200 | , pkgHashConfigureScriptArgs :: [String] -- just ./configure for build-type Configure |
@@ -301,6 +305,7 @@ renderPackageHashInputs |
301 | 305 | pkgHashDirectDeps |
302 | 306 | , -- and then all the config |
303 | 307 | entry "compilerid" prettyShow pkgHashCompilerId |
| 308 | + , entry "compilerabi" prettyShow pkgHashCompilerABI |
304 | 309 | , entry "platform" prettyShow pkgHashPlatform |
305 | 310 | , opt "flags" mempty showFlagAssignment pkgHashFlagAssignment |
306 | 311 | , opt "configure-script" [] unwords pkgHashConfigureScriptArgs |
|
0 commit comments