diff options
Diffstat (limited to 'koch.nim')
-rw-r--r-- | koch.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/koch.nim b/koch.nim index c6f28f870..a77f5cc3a 100644 --- a/koch.nim +++ b/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 |