diff options
Diffstat (limited to 'PCbuild/regen.vcxproj')
-rw-r--r-- | PCbuild/regen.vcxproj | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/PCbuild/regen.vcxproj b/PCbuild/regen.vcxproj index 876b12b..9fe8d6d 100644 --- a/PCbuild/regen.vcxproj +++ b/PCbuild/regen.vcxproj @@ -166,6 +166,14 @@ </Copy> <Warning Text="Grammar updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_UpdatedH)' != '' and '@(_UpdatedC)' != ''" /> </Target> + <Target Name="_RegenPegen" BeforeTargets="Build"> + <!-- Regenerate Parser/pegen/parse.c --> + <Exec Command=""$PYTHONPATH=$(srcdir)/Tools/peg_generator" "$(PythonExe)" -m pegen -c -q "$(PySourcePath)Grammar\python.gram" -o "$(IntDir)parse.c"" /> + <Copy SourceFiles="$(IntDir)parse.c" DestinationFiles="$(PySourcePath)Parser\pegen\parse.c"> + <Output TaskParameter="CopiedFiles" ItemName="_UpdatedParse" /> + </Copy> + <Warning Text="Pegen updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_UpdatedParse)' != ''" /> + </Target> <Target Name="_RegenAST_H" AfterTargets="_RegenGrammar"> <!-- Regenerate Include/Python-ast.h using Parser/asdl_c.py -h --> <Exec Command=""$(PythonExe)" "$(PySourcePath)Parser\asdl_c.py" -h "$(IntDir)Python-ast.h" "$(PySourcePath)Parser\Python.asdl"" /> @@ -222,4 +230,4 @@ <Clean Include="$(IntDir)graminit.c.new" /> </ItemGroup> </Target> -</Project>
\ No newline at end of file +</Project> |