diff options
author | Clyybber <darkmine956@gmail.com> | 2020-03-12 16:15:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-12 16:15:46 +0100 |
commit | f0cd50f9c48ee6bb585cd85615e5844a8082a8c1 (patch) | |
tree | 6e2118e1211ae7cbd4985511e535fbff8e1eb5b5 | |
parent | 60a3e036f6aaecabdedfab1103bb859053359f8d (diff) | |
download | Nim-f0cd50f9c48ee6bb585cd85615e5844a8082a8c1.tar.gz |
Change order of forwarded koch boot command line options, so as to be able to overwrite the nimcache location (#13637)
-rw-r--r-- | koch.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/koch.nim b/koch.nim index 982517656..c2f28f2e0 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) |