Skip to content
  • Julian Ospald's avatar
    0f53ccc6
    Use libffi-clib · 0f53ccc6
    Julian Ospald authored and Marge Bot's avatar Marge Bot committed
    Previously, we would build libffi via hadrian
    and bundle it manually with the GHC bindist.
    
    This now moves all that logic out of hadrian
    and allows us to have a clean Haskell package
    to build and link against and ship it without
    extra logic.
    
    This patch still retains the ability to link
    against a system libffi.
    
    The main reason of bundling libffi was that on
    some platforms (e.g. FreeBSD and Mac), system libffi
    is not visible to the C toolchain by default,
    so users would require settings in e.g. cabal
    to be able to compile anything.
    
    This adds the submodule libffi-clib to the repository.
    0f53ccc6
    Use libffi-clib
    Julian Ospald authored and Marge Bot's avatar Marge Bot committed
    Previously, we would build libffi via hadrian
    and bundle it manually with the GHC bindist.
    
    This now moves all that logic out of hadrian
    and allows us to have a clean Haskell package
    to build and link against and ship it without
    extra logic.
    
    This patch still retains the ability to link
    against a system libffi.
    
    The main reason of bundling libffi was that on
    some platforms (e.g. FreeBSD and Mac), system libffi
    is not visible to the C toolchain by default,
    so users would require settings in e.g. cabal
    to be able to compile anything.
    
    This adds the submodule libffi-clib to the repository.
Loading