koch: bootstrap with C++ for NIM_COMPILE_TO_CPP env var
This commit is contained in:
parent
505571f31c
commit
d2ca808106
1 changed files with 2 additions and 1 deletions
3
koch.nim
3
koch.nim
|
|
@ -272,7 +272,8 @@ proc boot(args: string) =
|
|||
var output = "compiler" / "nim".exe
|
||||
var finalDest = "bin" / "nim".exe
|
||||
# default to use the 'c' command:
|
||||
let bootOptions = if args.len == 0 or args.startsWith("-"): "c" else: ""
|
||||
let defaultCommand = if getEnv("NIM_COMPILE_TO_CPP", "false") == "true": "cpp" else: "c"
|
||||
let bootOptions = if args.len == 0 or args.startsWith("-"): defaultCommand else: ""
|
||||
let smartNimcache = (if "release" in args: "nimcache/r_" else: "nimcache/d_") &
|
||||
hostOs & "_" & hostCpu
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue