summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim9
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index f6d11d960..b4af49248 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -69,6 +69,7 @@ proc commandCompileToC =
     # echo "BEFORE CHECK DEP"
     # discard checkDepMem(gProjectMainIdx)
     # echo "CHECK DEP COMPLETE"
+    discard
 
   compileProject()
   cgenWriteModules()
@@ -283,11 +284,11 @@ proc resetMemory =
     echo GC_getStatistics()
 
 const
-  SimiluateCaasMemReset = false
+  SimulateCaasMemReset = false
   PrintRopeCacheStats = false
 
 proc mainCommand* =
-  when SimiluateCaasMemReset:
+  when SimulateCaasMemReset:
     gGlobalOptions.incl(optCaasEnabled)
 
   # In "nimrod serve" scenario, each command must reset the registered passes
@@ -309,7 +310,7 @@ proc mainCommand* =
   of "cpp", "compiletocpp":
     extccomp.cExt = ".cpp"
     gCmd = cmdCompileToCpp
-    if cCompiler == ccGcc: setCC("gpp")
+    if cCompiler == ccGcc: setCC("gcc")
     wantMainModule()
     defineSymbol("cpp")
     commandCompileToC()
@@ -453,6 +454,6 @@ proc mainCommand* =
     echo "  efficiency: ", formatFloat(1-(gCacheMisses.float/gCacheTries.float),
                                        ffDecimal, 3)
 
-  when SimiluateCaasMemReset:
+  when SimulateCaasMemReset:
     resetMemory()