@@ -1234,7 +1234,6 @@ def collect_python_build_artifacts(
1234
1234
# Things we want to collect:
1235
1235
# 1. object files that contribute to libpython
1236
1236
# 2. libraries for dependencies
1237
- # 3. pdb files for static libraries
1238
1237
1239
1238
# The build throws everything in the same directory hierarchy, so we can't
1240
1239
# easily filter by path to identify e.g. core versus extensions. We rely on
@@ -1298,10 +1297,6 @@ def process_project(project: pathlib.Path, dest_dir: pathlib.Path):
1298
1297
shutil .copyfile (p , dest )
1299
1298
yield f
1300
1299
1301
- elif p .suffix == ".pdb" :
1302
- log ("copying pdb file: %s to %s" % (p , dest_dir ))
1303
- shutil .copyfile (p , dest )
1304
-
1305
1300
def find_additional_dependencies (project : pathlib .Path ):
1306
1301
vcproj = pcbuild_path / ("%s.vcxproj" % project )
1307
1302
@@ -1329,7 +1324,7 @@ def find_additional_dependencies(project: pathlib.Path):
1329
1324
if static :
1330
1325
exts = ("lib" ,)
1331
1326
else :
1332
- exts = ("lib" , "pdb" , " exp" )
1327
+ exts = ("lib" , "exp" )
1333
1328
1334
1329
for ext in exts :
1335
1330
source = outputs_path / ("python37.%s" % ext )
@@ -1464,15 +1459,6 @@ def find_additional_dependencies(project: pathlib.Path):
1464
1459
log ("copying shared library %s" % shared_source )
1465
1460
shutil .copyfile (shared_source , shared_dest )
1466
1461
1467
- pdb_path = intermediates_path / depend / ("%s.pdb" % depend )
1468
- if not pdb_path .exists ():
1469
- log ("%s does not exist; trying alternate path" % pdb_path )
1470
- pdb_path = outputs_path / ("%s.pdb" % depend )
1471
-
1472
- dest = lib_dir / ("%s.pdb" % depend )
1473
- log ("copying pdb %s" % pdb_path )
1474
- shutil .copyfile (pdb_path , dest )
1475
-
1476
1462
return res
1477
1463
1478
1464
@@ -1678,6 +1664,7 @@ def build_cpython(arch: str, pgo=False, build_mode="static"):
1678
1664
str (layout_tmp ),
1679
1665
"--include-dev" ,
1680
1666
"--include-distutils" ,
1667
+ "--include-symbols" ,
1681
1668
"--include-tests" ,
1682
1669
"--include-venv" ,
1683
1670
]
0 commit comments