Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5951ec0

Browse files
committed
Pick up 32-bit launcher from PGO directory on 64-bit PGO build.
1 parent bddf724 commit 5951ec0

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ Tests
115115
Build
116116
-----
117117

118+
- Pick up 32-bit launcher from PGO directory on 64-bit PGO build.
119+
118120
- Drop PC\python_nt.h as it's not used. Add input dependency on custom
119121
build step.
120122

Tools/msi/msi.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -974,14 +974,17 @@ def add_files(db):
974974
# 32-bit installer.
975975
# XXX does this still allow to install the component on a 32-bit system?
976976
# Pick up 32-bit binary always
977-
launcher = os.path.join(srcdir, "PCBuild", "py.exe")
977+
launchersrc = PCBUILD
978+
if launchersrc.lower() == 'pcbuild\\x64-pgo':
979+
launchersrc = 'PCBuild\\win32-pgo'
980+
launcher = os.path.join(srcdir, launchersrc, "py.exe")
978981
launcherdir.start_component("launcher", flags = 8+256, keyfile="py.exe")
979-
launcherdir.add_file("%s/py.exe" % PCBUILD,
982+
launcherdir.add_file(launcher,
980983
version=installer.FileVersion(launcher, 0),
981984
language=installer.FileVersion(launcher, 1))
982-
launcherw = os.path.join(srcdir, "PCBuild", "pyw.exe")
985+
launcherw = os.path.join(srcdir, launchersrc, "pyw.exe")
983986
launcherdir.start_component("launcherw", flags = 8+256, keyfile="pyw.exe")
984-
launcherdir.add_file("%s/pyw.exe" % PCBUILD,
987+
launcherdir.add_file(launcherw,
985988
version=installer.FileVersion(launcherw, 0),
986989
language=installer.FileVersion(launcherw, 1))
987990

0 commit comments

Comments
 (0)