@@ -53,7 +53,9 @@ import System.Process
53-- | Compile to simplified forms and return CodegenInfo
53-- | Compile to simplified forms and return CodegenInfo
54compile :: Codegen -> FilePath -> Maybe Term -> Idris CodegenInfo
54compile :: Codegen -> FilePath -> Maybe Term -> Idris CodegenInfo
55compile codegen f mtm
55compile codegen f mtm
57+ when v $ iputStrLn "Compiling Output."
56− = do checkMVs -- check for undefined metavariables
58+ checkMVs -- check for undefined metavariables
57 checkTotality -- refuse to compile if there are totality problems
59 checkTotality -- refuse to compile if there are totality problems
58 exports <- findExports
60 exports <- findExports
59 let rootNames = case mtm of
61 let rootNames = case mtm of
@@ -108,7 +110,7 @@ compile codegen f mtm
108 Just f -> runIO $ writeFile f (dumpDefuns defuns)
110 Just f -> runIO $ writeFile f (dumpDefuns defuns)
109 triple <- Idris.AbsSyntax.targetTriple
111 triple <- Idris.AbsSyntax.targetTriple
110 cpu <- Idris.AbsSyntax.targetCPU
112 cpu <- Idris.AbsSyntax.targetCPU
111− logCodeGen 1 "Building output"
113+ when v $ iputStrLn "Generating Code."
112 case checked of
114 case checked of
113 OK c -> do return $ CodegenInfo f outty triple cpu
115 OK c -> do return $ CodegenInfo f outty triple cpu
114 hdrs impdirs objs libs flags
116 hdrs impdirs objs libs flags