Skip to content

Commit 2cb0473

Browse files
authored
Merge pull request #2391 from jepler/genhdr-build-error
py.mk: Fix race condition building .mo files
2 parents 83d1aac + 201f464 commit 2cb0473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/py.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ SRC_QSTR += $(HEADER_BUILD)/moduledefs.h
317317
# overall config, so they need to be caught
318318
MPCONFIGPORT_MK = $(wildcard mpconfigport.mk)
319319

320-
$(HEADER_BUILD)/$(TRANSLATION).mo: $(TOP)/locale/$(TRANSLATION).po
320+
$(HEADER_BUILD)/$(TRANSLATION).mo: $(TOP)/locale/$(TRANSLATION).po | $(HEADER_BUILD)
321321
$(Q)msgfmt -o $@ $^
322322

323323
$(HEADER_BUILD)/qstrdefs.preprocessed.h: $(PY_QSTR_DEFS) $(QSTR_DEFS) $(QSTR_DEFS_COLLECTED) mpconfigport.h $(MPCONFIGPORT_MK) $(PY_SRC)/mpconfig.h | $(HEADER_BUILD)

0 commit comments

Comments
 (0)