diff options
| author | neonene <53406459+neonene@users.noreply.github.com> | 2021-12-11 02:13:55 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-10 17:13:55 +0000 |
| commit | 3f398a77d37b5dfd51dabbc362d482a482fa885a (patch) | |
| tree | 9ab6ad057291bc7ce12f9cf0286bd49556d5e407 /PCbuild/pythoncore.vcxproj | |
| parent | 036bbb1d1b6156a1a72c40e9f907f302505085bc (diff) | |
| download | cpython-git-3f398a77d37b5dfd51dabbc362d482a482fa885a.tar.gz | |
bpo-45582: Fix test_embed failure during a PGO build on Windows (GH-30014)
This defines VPATH differently in PGO instrumentation builds, to account for a different default output directory. It also adds sys._vpath on Windows to make the value available to sysconfig so that it can be used in tests.
Diffstat (limited to 'PCbuild/pythoncore.vcxproj')
| -rw-r--r-- | PCbuild/pythoncore.vcxproj | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index e3a71ca645..33abfaf536 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -115,7 +115,7 @@ PREFIX=NULL; EXEC_PREFIX=NULL; VERSION=NULL; - VPATH="..\\.."; + VPATH="$(PyVPath)"; PYDEBUGEXT="$(PyDebugExt)"; PLATLIBDIR="DLLs"; %(PreprocessorDefinitions) @@ -519,7 +519,9 @@ <ClCompile Include="..\Python\suggestions.c" /> <ClCompile Include="..\Python\structmember.c" /> <ClCompile Include="..\Python\symtable.c" /> - <ClCompile Include="..\Python\sysmodule.c" /> + <ClCompile Include="..\Python\sysmodule.c"> + <PreprocessorDefinitions>VPATH="$(PyVPath)";%(PreprocessorDefinitions)</PreprocessorDefinitions> + </ClCompile> <ClCompile Include="..\Python\thread.c" /> <ClCompile Include="..\Python\traceback.c" /> </ItemGroup> |
