summaryrefslogtreecommitdiff
path: root/compiler/GHC
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 /compiler/GHC
parent53cc93ae3c9b939fff8407ee588dff89f7f92a12 (diff)
downloadhaskell-b2721819f391ab49871271283f32df54810c4387.tar.gz
hadrian: Clean up handling of libffi dependencies
Diffstat (limited to 'compiler/GHC')
-rw-r--r--compiler/GHC/Driver/CodeOutput.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/GHC/Driver/CodeOutput.hs b/compiler/GHC/Driver/CodeOutput.hs
index 5f5f9882c2..4a96967932 100644
--- a/compiler/GHC/Driver/CodeOutput.hs
+++ b/compiler/GHC/Driver/CodeOutput.hs
@@ -224,6 +224,15 @@ outputLlvm logger dflags filenm cmm_stream = do
************************************************************************
-}
+{-
+Note [Packaging libffi headers]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+The C code emitted by GHC for libffi adjustors must depend upon the ffi_arg type,
+defined in <ffi.h>. For this reason, we must ensure that <ffi.h> is available
+in binary distributions. To do so, we install these headers as part of the
+`rts` package.
+-}
+
outputForeignStubs
:: Logger
-> TmpFs