Skip to content

Commit

Permalink
update 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tinygiant98 committed Mar 14, 2024
1 parent b74dd6d commit 9c63653
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nasher/compile.nim
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,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)
Expand Down

0 comments on commit 9c63653

Please sign in to comment.