Skip to content

Commit de6efdb

Browse files
committed
Ensures intermediate directory is created before accessing it.
1 parent 190dbd9 commit de6efdb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PCbuild/pythoncore.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@
405405
<_HG Condition="$(HG.Contains(` `))">"$(HG)"</_HG>
406406
</PropertyGroup>
407407
<Message Text="Getting build info from $(_HG)" Importance="high" />
408+
<MakeDir Directories="$(IntDir)" Condition="!Exists($(IntDir))" />
408409
<Exec Command="$(_HG) id -b &gt; &quot;$(IntDir)hgbranch.txt&quot;" ContinueOnError="true" />
409410
<Exec Command="$(_HG) id -i &gt; &quot;$(IntDir)hgversion.txt&quot;" ContinueOnError="true" />
410411
<Exec Command="$(_HG) id -t &gt; &quot;$(IntDir)hgtag.txt&quot;" ContinueOnError="true" />

0 commit comments

Comments
 (0)