From f0cd50f9c48ee6bb585cd85615e5844a8082a8c1 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Thu, 12 Mar 2020 16:15:46 +0100 Subject: [PATCH] Change order of forwarded koch boot command line options, so as to be able to overwrite the nimcache location (#13637) --- koch.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koch.nim b/koch.nim index 9825176569..c2f28f2e03 100644 --- a/koch.nim +++ b/koch.nim @@ -316,10 +316,10 @@ proc boot(args: string) = # in order to use less memory, we split the build into two steps: # --compileOnly produces a $project.json file and does not run GCC/Clang. # jsonbuild then uses the $project.json file to build the Nim binary. - exec "$# $# $# $# --nimcache:$# --compileOnly compiler" / "nim.nim" % - [nimi, bootOptions, extraOption, args, smartNimcache] - exec "$# jsonscript $# --nimcache:$# compiler" / "nim.nim" % - [nimi, args, smartNimcache] + exec "$# $# $# --nimcache:$# $# --compileOnly compiler" / "nim.nim" % + [nimi, bootOptions, extraOption, smartNimcache, args] + exec "$# jsonscript --nimcache:$# $# compiler" / "nim.nim" % + [nimi, smartNimcache, args] if sameFileContent(output, i.thVersion): copyExe(output, finalDest)