Changeset 5397 for src/Main.hs
- Timestamp:
- 07/11/05 08:18:30 (3 years ago)
- svk:copy_cache_prev:
- 7349
- Files:
-
- 1 modified
-
src/Main.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Main.hs
r5393 r5397 175 175 codeGen backend env{ envGlobal = globRef } 176 176 177 initCompile :: IO () 178 initCompile = do 179 compPrelude <- getEnv "PUGS_COMPILE_PRELUDE" 180 writeIORef _BypassPreludePC $ case compPrelude of 181 Nothing -> True 182 Just "" -> True 183 Just "0" -> True 184 _ -> False 185 177 186 doCompileDump :: String -> FilePath -> String -> IO () 178 187 doCompileDump backend file prog = do 188 initCompile 179 189 str <- doCompile backend' file prog 180 190 putStr str … … 186 196 doCompileRun :: String -> FilePath -> String -> IO () 187 197 doCompileRun backend file prog = do 198 initCompile 188 199 str <- doCompile backend' file prog 189 200 evalEmbedded backend' str
