Looks like plugin06 really only works with dynamic libraries enabled
authorJoachim Breitner <mail@joachim-breitner.de>
Mon, 2 Dec 2013 15:43:23 +0000 (15:43 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Mon, 2 Dec 2013 15:43:23 +0000 (15:43 +0000)
Otherwise we get
ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 7.7.20131202 for x86_64-unknown-linux):
Static flags have not been initialised!
        Please call GHC.parseStaticFlags early enough.

testsuite/tests/plugins/all.T

index 50406c3..7e5f9b4 100644 (file)
@@ -34,6 +34,7 @@ test('plugins05',
 
 test('plugins06',
      [ extra_clean(['LinkerTicklingPlugin.hi', 'LinkerTicklingPlugin.o']),
+       unless(have_dynamic(),skip),
        only_ways([config.ghc_plugin_way]) ],
-     multimod_compile_and_run, ['plugins06', '-package ghc ' + config.ghc_th_way_flags ])
+     multimod_compile_and_run, ['plugins06', '-package ghc'])