summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2018-05-24 11:18:48 +0100
committerSimon Marlow <marlowsd@gmail.com>2018-05-25 10:07:45 +0100
commitc618732ebb234d09abb9f2ef4858d1f96b889a74 (patch)
treec6443feb1342bb53c88a5d56321bf8685241ade9 /compiler
parent5b6ef59f99590128394b9dd9717b07fa971f6fc0 (diff)
downloadhaskell-c618732ebb234d09abb9f2ef4858d1f96b889a74.tar.gz
isDllName: use Opt_ExternalDynamicRefs, not WayDyn
This should have been part of D4477, but got missed.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/main/Packages.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/Packages.hs b/compiler/main/Packages.hs
index e8e9032761..f27e597a39 100644
--- a/compiler/main/Packages.hs
+++ b/compiler/main/Packages.hs
@@ -2007,7 +2007,7 @@ isDllName :: DynFlags -> Module -> Name -> Bool
-- the symbol comes from another dynamically-linked package,
-- and applies on all platforms, not just Windows
isDllName dflags this_mod name
- | WayDyn `notElem` ways dflags = False
+ | not (gopt Opt_ExternalDynamicRefs dflags) = False
| Just mod <- nameModule_maybe name
-- Issue #8696 - when GHC is dynamically linked, it will attempt
-- to load the dynamic dependencies of object files at compile