summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-05-09 18:23:15 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-05-10 20:50:27 -0400
commitfec3e7aa72bee69ef3a3f363709377990650a5d3 (patch)
tree03b5e14d416fcf2b070550e20d158b493fba912a /rts
parent9d8f44a98f8345e5223614e0de50fbef2a05dd1d (diff)
downloadhaskell-fec3e7aa72bee69ef3a3f363709377990650a5d3.tar.gz
hadrian: Only copy and install libffi headers when using in-tree libffi
When passed `--use-system-libffi` then we shouldn't copy and install the headers from the system package. Instead the headers are expected to be available as a runtime dependency on the users system. Fixes #21485 #21487
Diffstat (limited to 'rts')
-rw-r--r--rts/rts.cabal.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/rts.cabal.in b/rts/rts.cabal.in
index ff60f1b456..cc449ee522 100644
--- a/rts/rts.cabal.in
+++ b/rts/rts.cabal.in
@@ -73,6 +73,9 @@ library
extra-bundled-libraries: Cffi-6
else
extra-bundled-libraries: Cffi
+ install-includes: ffi.h ffitarget.h
+ -- ^ see Note [Packaging libffi headers] in
+ -- GHC.Driver.CodeOutput.
-- The make build system does something special in config.mk.in
-- for generating profiled, debugged, etc builds of those
@@ -160,9 +163,6 @@ library
ghcautoconf.h ghcconfig.h ghcplatform.h ghcversion.h
-- ^ from include
DerivedConstants.h
- ffi.h ffitarget.h
- -- ^ see Note [Packaging libffi headers] in
- -- GHC.Driver.CodeOutput.
rts/EventLogConstants.h
rts/EventTypes.h
-- ^ generated