summary refs log tree commit diff stats
path: root/doc/intern.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/intern.txt')
-rw-r--r--doc/intern.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/intern.txt b/doc/intern.txt
index d9da863f5..a103703d7 100644
--- a/doc/intern.txt
+++ b/doc/intern.txt
@@ -145,6 +145,19 @@ are also lots of procs that aid in debugging:
     # why does it process temp.nim here?
     writeStackTrace()
 
+To create a new compiler for each run, use ``koch temp``::
+
+  ./koch temp c /tmp/test.nim
+
+``koch temp`` creates a debug build of the compiler, which is useful
+to create stacktraces for compiler debugging.
+
+``koch temp`` returns 125 as the exit code in case the compiler
+compilation fails. This exit code tells ``git bisect`` to skip the
+current commit.::
+
+  git bisect start bad-commit good-commit
+  git bisect ./koch -r c test-source.nim
 
 The compiler's architecture
 ===========================