We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdf8b59 commit 4f0b69aCopy full SHA for 4f0b69a
Cabal/src/Distribution/Simple/GHC.hs
@@ -237,12 +237,13 @@ configureCompiler verbosity hcPath conf0 = do
237
-- In this example, @AbiTag@ is "inplace".
238
compilerAbiTag :: AbiTag
239
compilerAbiTag =
240
- maybe
241
- NoAbiTag
242
- AbiTag
243
- ( dropWhile (== '-') . stripCommonPrefix (prettyShow compilerId)
244
- <$> Map.lookup "Project Unit Id" ghcInfoMap
245
- )
+ case Map.lookup "Project Unit Id" ghcInfoMap of
+ Nothing -> NoAbiTag
+ Just "" -> NoAbiTag
+ Just projectUnitId ->
+ case dropWhile (== '-') $ stripCommonPrefix (prettyShow compilerId) projectUnitId of
+ "" -> NoAbiTag
246
+ tag -> AbiTag tag
247
248
let comp =
249
Compiler
0 commit comments