@@ -52,9 +52,8 @@ 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
55−compile codegen f mtm
55+compile codegen f mtm = do
57− when v $ iputStrLn "Compiling Output."
56+ logCodeGen 1 "Compiling Output."
58 checkMVs -- check for undefined metavariables
57 checkMVs -- check for undefined metavariables
59 checkTotality -- refuse to compile if there are totality problems
58 checkTotality -- refuse to compile if there are totality problems
60 exports <- findExports
59 exports <- findExports
@@ -110,7 +109,7 @@ compile codegen f mtm
110 Just f -> runIO $ writeFile f (dumpDefuns defuns)
109 Just f -> runIO $ writeFile f (dumpDefuns defuns)
111 triple <- Idris.AbsSyntax.targetTriple
110 triple <- Idris.AbsSyntax.targetTriple
112 cpu <- Idris.AbsSyntax.targetCPU
111 cpu <- Idris.AbsSyntax.targetCPU
113− when v $ iputStrLn "Generating Code."
112+ logCodeGen 1 "Generating Code."
114 case checked of
113 case checked of
115 OK c -> do return $ CodegenInfo f outty triple cpu
114 OK c -> do return $ CodegenInfo f outty triple cpu
116 hdrs impdirs objs libs flags
115 hdrs impdirs objs libs flags