1
0
mirror of https://github.com/natnat-mc/moonbuild synced 2026-05-14 06:51:14 +02:00

fix freeze with -j and sync targets

This commit is contained in:
Codinget
2020-11-12 18:06:41 +01:00
parent fcf7c3fa07
commit 31fcc58ccd
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ class DepNode
return false
for file in *@ins
if not exists file
error "Node #{name} has ran all of its parents, but can't run since #{file} doesn't exist"
error "Node #{@name} has ran all of its parents, but can't run since #{file} doesn't exist. Did you mean to use after instead of depends?"
return true
build: (opts={}) =>
+1 -1
View File
@@ -39,7 +39,7 @@ class Executor
addprocess: (node, opts) =>
if node.sync
while @nprocesses != 0
@waitprocess
@waitprocess!
node\build opts
node.built = true
node\updatecache!