summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-02-07 11:12:49 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-02-07 11:12:49 +0100
commit29f97f8cb1024d66b050a60f0cbffe19c99b3d7a (patch)
tree4a67ddc85f129f7ba79f8da9e64e1a335202fff1
parentd7e312ee135b18d8f95750fb2bc94c80c7e13d04 (diff)
downloadNim-29f97f8cb1024d66b050a60f0cbffe19c99b3d7a.tar.gz
koch: boot use hostOs&hostCpu specific nimcache
-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: