From 29f97f8cb1024d66b050a60f0cbffe19c99b3d7a Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 7 Feb 2017 11:12:49 +0100 Subject: [PATCH] koch: boot use hostOs&hostCpu specific nimcache --- koch.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koch.nim b/koch.nim index f21b904ab4..825b360a0a 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: