aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Shaw <anthony.p.shaw@gmail.com>2020-04-29 19:09:09 +1000
committerGitHub <noreply@github.com>2020-04-29 10:09:09 +0100
commit9b64ef3ac7b434065dbff0048b9103999e4b491a (patch)
treea956a6c1ed95a4aeb3bb4ba74d258f0b23c43d47 /PCbuild
parentbpo-40275: Move transient_internet from test.support to socket_helper (GH-19711) (diff)
downloadcpython-9b64ef3ac7b434065dbff0048b9103999e4b491a.tar.gz
cpython-9b64ef3ac7b434065dbff0048b9103999e4b491a.tar.bz2
cpython-9b64ef3ac7b434065dbff0048b9103999e4b491a.zip
bpo-40432 Fix MSBuild project for Pegen grammars (#GH-9785)
* Update the source path of the pegen target within the Windows regen project. Change the path to Windows path formats. * Use the more reliable SetEnv task for Cpp Projects in MSBuild.
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/regen.vcxproj3
1 files changed, 2 insertions, 1 deletions
diff --git a/PCbuild/regen.vcxproj b/PCbuild/regen.vcxproj
index 285a8a1b9e4..c97536f7dd9 100644
--- a/PCbuild/regen.vcxproj
+++ b/PCbuild/regen.vcxproj
@@ -168,7 +168,8 @@
</Target>
<Target Name="_RegenPegen" BeforeTargets="Build">
<!-- Regenerate Parser/pegen/parse.c -->
- <Exec Command="&quot;$PYTHONPATH=$(srcdir)/Tools/peg_generator&quot; &quot;$(PythonExe)&quot; -m pegen -q c &quot;$(PySourcePath)Grammar\python.gram&quot; &quot;$(PySourcePath)Grammar\Tokens&quot; -o &quot;$(IntDir)parse.c&quot;" />
+ <SetEnv Name="PYTHONPATH" Prefix="true" Value="$(PySourcePath)Tools\peg_generator\" />
+ <Exec Command="&quot;$(PythonExe)&quot; -m pegen -q c &quot;$(PySourcePath)Grammar\python.gram&quot; &quot;$(PySourcePath)Grammar\Tokens&quot; -o &quot;$(IntDir)parse.c&quot;" />
<Copy SourceFiles="$(IntDir)parse.c" DestinationFiles="$(PySourcePath)Parser\pegen\parse.c">
<Output TaskParameter="CopiedFiles" ItemName="_UpdatedParse" />
</Copy>