aboutsummaryrefslogtreecommitdiff
path: root/src/compiler/setup.zc
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/setup.zc')
-rw-r--r--src/compiler/setup.zc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/setup.zc b/src/compiler/setup.zc
index 26a18e0..ac455db 100644
--- a/src/compiler/setup.zc
+++ b/src/compiler/setup.zc
@@ -175,7 +175,9 @@ int start() {
// a genome that carries the language server runs it instead of compiling stdin
s = lookup(intern("lsp.lsp_main"));
if (s >= 0 && skind[s] == K_FN && (sflag[s] & F_DEF)) { f = sval[s]; f(); rt.halt(); }
+ xc_init();
unit_stdin();
+ if (xc_on) rt.halt(); // --explain-checks: the records are out; main does not run
if (here > ptop) ptop = here;
rt.scrub(); // compilation's stale words would keep quarantined blocks alive
rt.gc();