Added a missing command to actually compile the C file produced by the post-analyse pass, and fixed the file extensions passed to the kroc link command

This commit is contained in:
Neil Brown 2007-10-08 21:54:12 +00:00
parent c17cf0ce38
commit 85fdfe7af7

View File

@ -137,7 +137,8 @@ main = do
(tempPathPost, tempHandlePost) <- liftIO $ openTempFile "." "tock-temp-post"
postCAnalyse (tempPath ++ ".s") tempHandlePost
liftIO $ hClose tempHandlePost
exec $ krocLinkCommand tempPath tempPathPost destBin
exec $ cCommand tempPathPost (tempPathPost ++ ".o")
exec $ krocLinkCommand (tempPath ++ ".o") (tempPathPost ++ ".o") destBin
BackendCPPCSP -> exec $ cxxCommand tempPath destBin