summaryrefslogtreecommitdiff
path: root/hadrian/src/Rules/Generate.hs
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-07-06 18:44:07 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-07-07 13:56:12 -0400
commitd25b6851bbd63b6a65fb7cd08b37c6bc74df9855 (patch)
treeb0bb8387d37479349df2ad6018ab52fa0426134a /hadrian/src/Rules/Generate.hs
parent929d26db3080ec49ab67690952a316fc082b479f (diff)
downloadhaskell-d25b6851bbd63b6a65fb7cd08b37c6bc74df9855.tar.gz
Hadrian: ghc-gmp.h shouldn't be a compiler dependency
Diffstat (limited to 'hadrian/src/Rules/Generate.hs')
-rw-r--r--hadrian/src/Rules/Generate.hs3
1 files changed, 0 insertions, 3 deletions
diff --git a/hadrian/src/Rules/Generate.hs b/hadrian/src/Rules/Generate.hs
index 5f226f438d..2ac01b4f48 100644
--- a/hadrian/src/Rules/Generate.hs
+++ b/hadrian/src/Rules/Generate.hs
@@ -50,13 +50,10 @@ derivedConstantsFiles =
compilerDependencies :: Expr [FilePath]
compilerDependencies = do
stage <- getStage
- isGmp <- (== "gmp") <$> getBignumBackend
ghcPath <- expr $ buildPath (vanillaContext stage compiler)
- ghcBignumPath <- expr $ buildPath (vanillaContext stage ghcBignum)
rtsPath <- expr (rtsBuildPath stage)
libDir <- expr $ stageLibPath stage
mconcat [ return $ (libDir -/-) <$> derivedConstantsFiles
- , notStage0 ? isGmp ? return [ghcBignumPath -/- "include/ghc-gmp.h"]
, notStage0 ? return ((rtsPath -/-) <$> libffiHeaderFiles)
, return $ fmap (ghcPath -/-)
[ "primop-can-fail.hs-incl"