Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
build: fix race in parallel build
Browse files Browse the repository at this point in the history
Run `make clean` first, *then* `make all`
  • Loading branch information
bnoordhuis committed Nov 7, 2011
1 parent 6a83df0 commit d7bcf21
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions wscript
Expand Up @@ -634,12 +634,11 @@ def uv_cmd(bld, variant):
#
cmd = 'cp -r ' + sh_escape(srcdir) + '/* ' + sh_escape(blddir)
if not sys.platform.startswith('win32'):
cmd += ' && if [[ -z "$NODE_MAKE" ]]; then NODE_MAKE=make; fi; '
cmd += '$NODE_MAKE -C ' + sh_escape(blddir)
make = ('if [ -z "$NODE_MAKE" ]; then NODE_MAKE=make; fi; '
'$NODE_MAKE -C ' + sh_escape(blddir))
else:
cmd += ' && make -C ' + sh_escape(blddir)
cmd += ' clean all'
return cmd
make = 'make -C ' + sh_escape(blddir)
return '%s && (%s clean) && (%s all)' % (cmd, make, make)


def build_uv(bld):
Expand Down

0 comments on commit d7bcf21

Please sign in to comment.