summaryrefslogtreecommitdiff
path: root/hadrian
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-22 13:32:01 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-29 03:48:20 -0400
commit8e5de15da1ded1909e10483c7ae3ba1ae3e87b17 (patch)
treee6c9288e9403bab70741afc1f2f27448d3b520db /hadrian
parent7b2ecbc01aacbbacbbf8a02a0d6913e228f2994b (diff)
downloadhaskell-8e5de15da1ded1909e10483c7ae3ba1ae3e87b17.tar.gz
hadrian: Define USE_LIBFFI_FOR_ADJUSTORS when necessary
Diffstat (limited to 'hadrian')
-rw-r--r--hadrian/src/Settings/Packages.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/hadrian/src/Settings/Packages.hs b/hadrian/src/Settings/Packages.hs
index ac3c28404e..349c6518fb 100644
--- a/hadrian/src/Settings/Packages.hs
+++ b/hadrian/src/Settings/Packages.hs
@@ -226,6 +226,8 @@ rtsPackageArgs = package rts ? do
, Profiling `wayUnit` way ? arg "-DPROFILING"
, Threaded `wayUnit` way ? arg "-DTHREADED_RTS"
+ , useLibFFIForAdjustors ? arg "-DUSE_LIBFFI_FOR_ADJUSTORS"
+
, inputs ["**/RtsMessages.c", "**/Trace.c"] ?
arg ("-DProjectVersion=" ++ show projectVersion)