summary refs log tree commit diff stats
path: root/compiler/cgen.nim
diff options
context:
space:
mode:
authorEmery Hemingway <githubjunk@spam.works>2017-10-25 06:50:55 -0500
committerAndreas Rumpf <rumpf_a@web.de>2017-10-25 13:50:55 +0200
commit2ca7b703fbc61b2e5399bdc1eb577a8948ae1cb9 (patch)
tree020c03799845bd0743d8d8b2e2338de188298de4 /compiler/cgen.nim
parente40bf9036faf881c51e1dbfe216fa44e68f80fc0 (diff)
downloadNim-2ca7b703fbc61b2e5399bdc1eb577a8948ae1cb9.tar.gz
No implicit quit for Genode (#6515)
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r--compiler/cgen.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 367fced9a..56002459e 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -1013,10 +1013,9 @@ proc genMainProc(m: BModule) =
     ComponentConstruct =
       "void Libc::Component::construct(Libc::Env &env) {$N" &
       "\tgenodeEnv = &env;$N" &
-      "\tLibc::with_libc([&] () {$n\t" &
+      "\tLibc::with_libc([&] () {$N\t" &
       MainProcs &
       "\t});$N" &
-      "\tenv.parent().exit(0);$N" &
       "}$N$N"
 
   var nimMain, otherMain: FormatStr