diff options
Diffstat (limited to 'testsuite/tests/plugins')
-rw-r--r-- | testsuite/tests/plugins/LinkerTicklingPlugin.hs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/tests/plugins/LinkerTicklingPlugin.hs b/testsuite/tests/plugins/LinkerTicklingPlugin.hs index 52d5e177bb..260d4c1228 100644 --- a/testsuite/tests/plugins/LinkerTicklingPlugin.hs +++ b/testsuite/tests/plugins/LinkerTicklingPlugin.hs @@ -1,15 +1,15 @@ module LinkerTicklingPlugin where import GhcPlugins -import StaticFlags +import DynFlags plugin :: Plugin plugin = defaultPlugin { installCoreToDos = install } --- This tests whether plugins are linking against the *running* GHC --- or a new instance of it. If it is a new instance the staticFlags --- won't have been initialised, so we'll get a GHC panic here: +-- This tests whether plugins are linking against the *running* GHC or a new +-- instance of it. If it is a new instance (settings unsafeGlobalDynFlags) won't +-- have been initialised, so we'll get a GHC panic here: install :: [CommandLineOption] -> [CoreToDo] -> CoreM [CoreToDo] -install _options todos = length staticFlags `seq` return todos +install _options todos = settings unsafeGlobalDynFlags `seq` return todos |