Skip to content

hadrian: Make sure ffi headers are built before using a compiler

Matthew Pickering requested to merge wip/libffi-dep-hadrian into master

When we are using ffi adjustors then we rely on ffi.h and ffitarget.h files during code generation when compiling stubs.

Therefore we need to add this dependency to the build system (which this patch does).

Reproducer, configure with --enable-libffi-adjustors and then build "_build/stage1/libraries/ghc-prim/build/GHC/Types.p_o".

Observe that this fails before this patch and works afterwards.

cc @luite @alt-romes

Merge request reports

Loading