ICU-21216 Windows: Ensure directory exists before running rc

When building in parallel it's possible that the rc command is invoked
before other rules get around to creating the output directory.
This commit is contained in:
Paul Smith 2020-08-05 12:13:19 -04:00 committed by Jeff Genovy
parent 4276d83e8a
commit ed268e77e3

View file

@ -241,6 +241,7 @@ ifeq ($(ENABLE_SO_VERSION_DATA),1)
ifeq ($(PKGDATA_MODE),dll)
SO_VERSION_DATA = $(OUTTMPDIR)/icudata.res
$(SO_VERSION_DATA) : $(MISCSRCDIR)/icudata.rc
mkdir -p $(@D)
ifeq ($(MSYS_RC_MODE),1)
rc.exe -i$(srcdir)/../common -i$(top_builddir)/common -fo$@ $(CPPFLAGS) $<
else