Skip to content

Commit e7da2f8

Browse files
committed
Make PGO use usual build directory on Windows.
1 parent 654a7bd commit e7da2f8

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

PCbuild/pyproject.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<OutDir Condition="!HasTrailingSlash($(OutDir))">$(OutDir)\</OutDir>
88
<Py_IntDir Condition="'$(Py_IntDir)' == ''">$(MSBuildThisFileDirectory)obj\</Py_IntDir>
99
<IntDir>$(Py_IntDir)\$(ArchName)_$(Configuration)\$(ProjectName)\</IntDir>
10-
<IntDir Condition="$(Configuration) == 'PGInstrument' or $(Configuration) == 'PGUpdate'">$(Py_IntDir)\$(ArchName)_PGO\$(ProjectName)\</IntDir>
1110
<TargetName Condition="'$(TargetName)' == ''">$(ProjectName)</TargetName>
1211
<TargetName>$(TargetName)$(PyDebugExt)</TargetName>
1312
<GenerateManifest>false</GenerateManifest>

PCbuild/python.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
-->
2626
<ArchName Condition="'$(ArchName)' == '' and $(Platform) == 'x64'">amd64</ArchName>
2727
<ArchName Condition="'$(ArchName)' == ''">win32</ArchName>
28-
<ArchName Condition="$(Configuration) == 'PGInstrument' or $(Configuration) == 'PGUpdate'">$(ArchName)-pgo</ArchName>
2928

3029
<!-- Root directory of the repository -->
3130
<PySourcePath Condition="'$(PySourcePath)' == ''">$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)\..\))</PySourcePath>

Tools/msi/buildrelease.bat

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,10 @@ if "%1" EQU "x86" (
111111
set BUILD_PLAT=Win32
112112
set OUTDIR_PLAT=win32
113113
set OBJDIR_PLAT=x86
114-
) else if "%~2" NEQ "" (
115-
call "%PCBUILD%env.bat" amd64
116-
set PGO=%~2
117-
set BUILD=%PCBUILD%amd64-pgo\
118-
set BUILD_PLAT=x64
119-
set OUTDIR_PLAT=amd64
120-
set OBJDIR_PLAT=x64
121114
) else (
122115
call "%PCBUILD%env.bat" amd64
123116
set BUILD=%PCBUILD%amd64\
117+
set PGO=%~2
124118
set BUILD_PLAT=x64
125119
set OUTDIR_PLAT=amd64
126120
set OBJDIR_PLAT=x64
@@ -177,7 +171,6 @@ if not "%SKIPBUILD%" EQU "1" (
177171
)
178172

179173
set BUILDOPTS=/p:Platform=%1 /p:BuildForRelease=true /p:DownloadUrl=%DOWNLOAD_URL% /p:DownloadUrlBase=%DOWNLOAD_URL_BASE% /p:ReleaseUri=%RELEASE_URI%
180-
if "%PGO%" NEQ "" set BUILDOPTS=%BUILDOPTS% /p:PGOBuildPath=%BUILD%
181174
msbuild "%D%bundle\releaselocal.wixproj" /t:Rebuild %BUILDOPTS% %CERTOPTS% /p:RebuildAll=true
182175
if errorlevel 1 exit /B
183176
msbuild "%D%bundle\releaseweb.wixproj" /t:Rebuild %BUILDOPTS% %CERTOPTS% /p:RebuildAll=false

0 commit comments

Comments
 (0)