The GC argument is now passed to the compiler and codegen.
This commit is contained in:
parent
ddffe7913c
commit
f9d28028b5
3 changed files with 6 additions and 6 deletions
|
|
@ -137,7 +137,7 @@ main' opts s =
|
|||
log monomorphized
|
||||
|
||||
printToErr "\n -- Compiler --"
|
||||
generatedCode <- fromErr $ generateCode monomorphized
|
||||
generatedCode <- fromErr $ generateCode monomorphized (gc opts)
|
||||
|
||||
check <- doesPathExist "output"
|
||||
when check (removeDirectoryRecursive "output")
|
||||
|
|
@ -146,7 +146,7 @@ main' opts s =
|
|||
writeFile "output/llvm.ll" generatedCode
|
||||
debugDotViz
|
||||
|
||||
compile generatedCode
|
||||
compile generatedCode (gc opts)
|
||||
printToErr "Compilation done!"
|
||||
printToErr "\n-- Program output --"
|
||||
print =<< spawnWait "./output/hello_world"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue