From d2ca8081060c0de9ab56d38f17a1a315661bdff8 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 18 Oct 2018 10:58:28 +0200 Subject: koch: bootstrap with C++ for NIM_COMPILE_TO_CPP env var --- koch.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0