]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make PGO use usual build directory on Windows.
authorSteve Dower <steve.dower@microsoft.com>
Mon, 12 Sep 2016 03:19:35 +0000 (20:19 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Mon, 12 Sep 2016 03:19:35 +0000 (20:19 -0700)
PCbuild/pyproject.props
PCbuild/python.props
Tools/msi/buildrelease.bat

index d1ac99847b98093607722848245d0edffed095ee..543b4ca2080c4ec47e3029c71f24858796d4dbb3 100644 (file)
@@ -7,7 +7,6 @@
     <OutDir Condition="!HasTrailingSlash($(OutDir))">$(OutDir)\</OutDir>
     <Py_IntDir Condition="'$(Py_IntDir)' == ''">$(MSBuildThisFileDirectory)obj\</Py_IntDir>
     <IntDir>$(Py_IntDir)\$(ArchName)_$(Configuration)\$(ProjectName)\</IntDir>
-    <IntDir Condition="$(Configuration) == 'PGInstrument' or $(Configuration) == 'PGUpdate'">$(Py_IntDir)\$(ArchName)_PGO\$(ProjectName)\</IntDir>
     <TargetName Condition="'$(TargetName)' == ''">$(ProjectName)</TargetName>
     <TargetName>$(TargetName)$(PyDebugExt)</TargetName>
     <GenerateManifest>false</GenerateManifest>
index 015009864b317b3ba134fb75bb3d4b00a38ebb1a..2b9b903cc5d1e46287c6acce74f9a197dda1d590 100644 (file)
@@ -25,7 +25,6 @@
     -->
     <ArchName Condition="'$(ArchName)' == '' and $(Platform) == 'x64'">amd64</ArchName>
     <ArchName Condition="'$(ArchName)' == ''">win32</ArchName>
-    <ArchName Condition="$(Configuration) == 'PGInstrument' or $(Configuration) == 'PGUpdate'">$(ArchName)-pgo</ArchName>
     
     <!-- Root directory of the repository -->
     <PySourcePath Condition="'$(PySourcePath)' == ''">$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)\..\))</PySourcePath>
index 1af5ac1b816287a465903788dbc1eea44b9c270e..710acaccd6f50f7dea43883b942d0fd0cc76c669 100644 (file)
@@ -111,16 +111,10 @@ if "%1" EQU "x86" (
     set BUILD_PLAT=Win32\r
     set OUTDIR_PLAT=win32\r
     set OBJDIR_PLAT=x86\r
-) else if "%~2" NEQ "" (\r
-    call "%PCBUILD%env.bat" amd64\r
-    set PGO=%~2\r
-    set BUILD=%PCBUILD%amd64-pgo\\r
-    set BUILD_PLAT=x64\r
-    set OUTDIR_PLAT=amd64\r
-    set OBJDIR_PLAT=x64\r
 ) else (\r
     call "%PCBUILD%env.bat" amd64\r
     set BUILD=%PCBUILD%amd64\\r
+    set PGO=%~2\r
     set BUILD_PLAT=x64\r
     set OUTDIR_PLAT=amd64\r
     set OBJDIR_PLAT=x64\r
@@ -177,7 +171,6 @@ if not "%SKIPBUILD%" EQU "1" (
 )\r
 \r
 set BUILDOPTS=/p:Platform=%1 /p:BuildForRelease=true /p:DownloadUrl=%DOWNLOAD_URL% /p:DownloadUrlBase=%DOWNLOAD_URL_BASE% /p:ReleaseUri=%RELEASE_URI%\r
-if "%PGO%" NEQ "" set BUILDOPTS=%BUILDOPTS% /p:PGOBuildPath=%BUILD%\r
 msbuild "%D%bundle\releaselocal.wixproj" /t:Rebuild %BUILDOPTS% %CERTOPTS% /p:RebuildAll=true\r
 if errorlevel 1 exit /B\r
 msbuild "%D%bundle\releaseweb.wixproj" /t:Rebuild %BUILDOPTS% %CERTOPTS% /p:RebuildAll=false\r