From 8a5cd179d0b0391288a1cfc566bb8f3bac7db374 Mon Sep 17 00:00:00 2001 From: Ed Burke Date: Thu, 14 Mar 2024 12:29:45 -0400 Subject: [PATCH] update 2 --- src/nasher/compile.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nasher/compile.nim b/src/nasher/compile.nim index 103f529..c0bc340 100644 --- a/src/nasher/compile.nim +++ b/src/nasher/compile.nim @@ -190,13 +190,16 @@ proc compile*(opts: Options, target: Target, updatedNss: var seq[string], exitCo debug("Recompiling", "executable script " & file) updatedNss.add(file) - scripts = getUpdated(updatedNss, files, target.skips) + scripts = getUpdated(updatedNss, files, target.skips.mapIt(it.extractFilename)) for script in scripts: ## Ensure any updated scripts have their compiled version deleted so ## they will be re-compiled if compilation fails for some reason. removeFile(script.changeFileExt("ncs")) removeFile(script.changeFileExt("ndb")) + for skip in target.skips.mapIt(it.extractFilename): + debug("skipCompile", skip); + if scripts.len > 0: let chunkSize = opts.get("nssChunks", 500)