From a6ad749b38f7b231a8044c580a1589da20662034 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Mon, 2 Jul 2018 21:25:27 +0900 Subject: [PATCH] Make unique nimcache folders to speed up compilation --- src/switch_build.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_build.nim b/src/switch_build.nim index 7c42774..a84eb7d 100644 --- a/src/switch_build.nim +++ b/src/switch_build.nim @@ -108,7 +108,7 @@ proc buildElf(buildInfo: BuildInfo): string = result = buildInfo.outDir/buildInfo.name & ".elf" var args = " --out=" & quoteShell(result) - args &= " --nimcache=nimcache" + args &= " --nimcache=nimcache_" & $buildInfo.name if buildInfo.release: args &= " -d:release" if buildInfo.force: