diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-02-25 10:00:01 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-04-25 10:18:17 -0400 |
commit | b2721819f391ab49871271283f32df54810c4387 (patch) | |
tree | 1c9c6158e83ba72efd670902c735834a70f952c3 /compiler/GHC | |
parent | 53cc93ae3c9b939fff8407ee588dff89f7f92a12 (diff) | |
download | haskell-b2721819f391ab49871271283f32df54810c4387.tar.gz |
hadrian: Clean up handling of libffi dependencies
Diffstat (limited to 'compiler/GHC')
-rw-r--r-- | compiler/GHC/Driver/CodeOutput.hs | 9 |
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 |