summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--koch.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/koch.nim b/koch.nim
index f21b904ab..825b360a0 100644
--- a/koch.nim
+++ b/koch.nim
@@ -323,7 +323,8 @@ proc boot(args: string) =
   var finalDest = "bin" / "nim".exe
   # default to use the 'c' command:
   let bootOptions = if args.len == 0 or args.startsWith("-"): "c" else: ""
-  let smartNimcache = if "release" in args: "nimcache/release" else: "nimcache/debug"
+  let smartNimcache = (if "release" in args: "nimcache/r_" else: "nimcache/d_") &
+                      hostOs & "_" & hostCpu
 
   copyExe(findStartNim(), 0.thVersion)
   for i in 0..2: