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 /Python/sysmodule.c | |
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 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index af4f926f0e..f912115560 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -2823,6 +2823,8 @@ _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict) goto type_init_failed; } } + + SET_SYS_FROM_STRING("_vpath", VPATH); #endif /* float repr style: 0.03 (short) vs 0.029999999999999999 (legacy) */ |