summaryrefslogtreecommitdiff
path: root/hadrian/src/Rules/Libffi.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-02-25 10:00:01 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-04-25 10:18:17 -0400
commitb2721819f391ab49871271283f32df54810c4387 (patch)
tree1c9c6158e83ba72efd670902c735834a70f952c3 /hadrian/src/Rules/Libffi.hs
parent53cc93ae3c9b939fff8407ee588dff89f7f92a12 (diff)
downloadhaskell-b2721819f391ab49871271283f32df54810c4387.tar.gz
hadrian: Clean up handling of libffi dependencies
Diffstat (limited to 'hadrian/src/Rules/Libffi.hs')
-rw-r--r--hadrian/src/Rules/Libffi.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/hadrian/src/Rules/Libffi.hs b/hadrian/src/Rules/Libffi.hs
index e37faee5dc..8e62461202 100644
--- a/hadrian/src/Rules/Libffi.hs
+++ b/hadrian/src/Rules/Libffi.hs
@@ -103,6 +103,9 @@ libffiLocalName force_dynamic = do
libffiLibrary :: FilePath
libffiLibrary = "inst/lib/libffi.a"
+-- | These are the headers that we must package with GHC since foreign export
+-- adjustor code produced by GHC depends upon them.
+-- See Note [Packaging libffi headers] in GHC.Driver.CodeOutput.
libffiHeaderFiles :: [FilePath]
libffiHeaderFiles = ["ffi.h", "ffitarget.h"]