aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/sysconfig.py
diff options
context:
space:
mode:
authorneonene <53406459+neonene@users.noreply.github.com>2021-12-11 02:13:55 +0900
committerGitHub <noreply@github.com>2021-12-10 17:13:55 +0000
commit3f398a77d37b5dfd51dabbc362d482a482fa885a (patch)
tree9ab6ad057291bc7ce12f9cf0286bd49556d5e407 /Lib/sysconfig.py
parent036bbb1d1b6156a1a72c40e9f907f302505085bc (diff)
downloadcpython-3f398a77d37b5dfd51dabbc362d482a482fa885a.tar.gz
cpython-3f398a77d37b5dfd51dabbc362d482a482fa885a.zip
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 'Lib/sysconfig.py')
-rw-r--r--Lib/sysconfig.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index da918b7ba19..ef335c69421 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -616,6 +616,7 @@ def get_config_vars(*args):
if os.name == 'nt':
_init_non_posix(_CONFIG_VARS)
+ _CONFIG_VARS['VPATH'] = sys._vpath
if os.name == 'posix':
_init_posix(_CONFIG_VARS)
# For backward compatibility, see issue19555