koch: boot use hostOs&hostCpu specific nimcache

This commit is contained in:
Andreas Rumpf
2017-02-07 11:12:49 +01:00
parent d7e312ee13
commit 29f97f8cb1

View File

@@ -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: