Define FFI_GO_CLOSURES
The libffi shipped with Apple's XCode toolchain does not contain a definition of the FFI_GO_CLOSURES macro, despite containing references to said macro. Work around this by defining the macro, following the model of a similar workaround in OpenJDK [1]. [1] https://github.com/openjdk/jdk17u-dev/pull/741/files (cherry picked from commit 8b35e8ca)
Showing
- compiler/GHC/Driver/CodeOutput.hs 1 addition, 1 deletioncompiler/GHC/Driver/CodeOutput.hs
- libraries/ghci/GHCi/FFI.hsc 8 additions, 0 deletionslibraries/ghci/GHCi/FFI.hsc
- rts/Interpreter.c 1 addition, 1 deletionrts/Interpreter.c
- rts/adjustor/LibffiAdjustor.c 1 addition, 1 deletionrts/adjustor/LibffiAdjustor.c
- rts/include/rts/ghc_ffi.h 28 additions, 0 deletionsrts/include/rts/ghc_ffi.h
- rts/rts.cabal.in 1 addition, 0 deletionsrts/rts.cabal.in
- rts/sm/Storage.c 1 addition, 1 deletionrts/sm/Storage.c
Loading
Please register or sign in to comment