diff --git a/tools/Wasm.mk b/tools/Wasm.mk index 92d308124..6314f652a 100644 --- a/tools/Wasm.mk +++ b/tools/Wasm.mk @@ -143,7 +143,7 @@ $(WOBJS): %.c$(SUFFIX).wo : %.c $(WBIN): $(WOBJS) $(shell mkdir -p $(APPDIR)/wasm) - $(Q) $(WAR) $@ $(filter-out $(MAINSRC:=$(SUFFIX).wo),$^) + $(Q) flock $(WBIN).lock -c '$(WAR) $@ $(filter-out $(MAINSRC:=$(SUFFIX).wo),$^)' $(foreach main,$(MAINSRC), \ $(eval progname=$(strip $(PROGNAME_$(main:=$(SUFFIX)$(OBJEXT))))) \ $(eval dstname=$(shell echo $(main:=$(SUFFIX).wo) | sed -e 's/\//_/g')) \