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.
This commit is contained in:
@@ -187,7 +187,7 @@ if os_name == 'posix' or os_name == 'darwin':
|
||||
|
||||
elif os_name == 'nt':
|
||||
BUILDDIR_TXT = 'pybuilddir.txt'
|
||||
BUILD_LANDMARK = r'..\..\Modules\Setup.local'
|
||||
BUILD_LANDMARK = f'{VPATH}\\Modules\\Setup.local'
|
||||
DEFAULT_PROGRAM_NAME = f'python'
|
||||
STDLIB_SUBDIR = 'Lib'
|
||||
STDLIB_LANDMARKS = [f'{STDLIB_SUBDIR}\\os.py', f'{STDLIB_SUBDIR}\\os.pyc']
|
||||
|
||||
Reference in New Issue
Block a user