Stopped the .o file being removed after compilation when the -c flag was given

This commit is contained in:
Neil Brown 2009-04-03 16:52:16 +00:00
parent 081e4f79d4
commit 38ffed2bda

View File

@ -282,9 +282,11 @@ compileFull inputFile moutputFile
postHFile = outputFile ++ "_post.h"
postCFile = outputFile ++ "_post.c"
postOFile = outputFile ++ "_post.o"
occFile = outputFile ++ "_wrapper.occ"
in
do sequence_ $ map noteFile [sFile, oFile, postCFile, postOFile, occFile]
do sequence_ $ map noteFile $ [sFile, postCFile, postOFile]
++ if csHasMain optsPS then [oFile] else []
-- The object file is a temporary to-be-removed
-- iff we are also linking the end product
-- Compile the C into assembly, and assembly into an object file
exec $ cAsmCommand cFile sFile (csCompilerFlags optsPS)