Allow TH/annotations to be used with -dynamic
authorSimon Marlow <marlowsd@gmail.com>
Tue, 8 Sep 2009 10:16:44 +0000 (10:16 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 8 Sep 2009 10:16:44 +0000 (10:16 +0000)
compiler/ghci/Linker.lhs

index 8d0d6ba..a7e9492 100644 (file)
@@ -528,7 +528,7 @@ dieWith span msg = ghcError (ProgramError (showSDoc (mkLocMessage span msg)))
 checkNonStdWay :: DynFlags -> SrcSpan -> IO (Maybe String)
 checkNonStdWay dflags srcspan = do
   let tag = buildTag dflags
-  if null tag then return Nothing else do
+  if null tag || tag == "dyn" then return Nothing else do
   let default_osuf = phaseInputExt StopLn
   if objectSuf dflags == default_osuf
        then failNonStd srcspan