Skip to content
  • Simon Marlow's avatar
    Optionally use libffi to implement 'foreign import "wrapper"' (#793) · 5123ae93
    Simon Marlow authored
    To enable this, set UseLibFFI=YES in mk/build.mk.  
    
    The main advantage here is that this reduces the porting effort for
    new platforms: libffi works on more architectures than our current
    adjustor code, and it is probably more heavily tested.  We could
    potentially replace our existing code, but since it is probably faster
    than libffi (just a guess, I'll measure later) and is already working,
    it doesn't seem worthwhile.
    
    Right now, you must have libffi installed on your system.  I used the
    one supplied by Debian/Ubuntu.
    5123ae93