summaryrefslogtreecommitdiffstats
path: root/PCbuild9/build_pgo.bat
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-22 10:25:50 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-22 10:25:50 (GMT)
commitc139a9b61b906549615b2f2eb1b470dc732f991c (patch)
tree70579ed5c56f5936dbd120ad73bd8bfdfdeff815 /PCbuild9/build_pgo.bat
parent6bd238cba3aad0c671eee95ed983d71a32299548 (diff)
downloadcpython-c139a9b61b906549615b2f2eb1b470dc732f991c.zip
cpython-c139a9b61b906549615b2f2eb1b470dc732f991c.tar.gz
cpython-c139a9b61b906549615b2f2eb1b470dc732f991c.tar.bz2
Fixed PGO builds
The intermediate PG instrument build now lands in Platform-pgi and the final optimized build in Platform-pgo.
Diffstat (limited to 'PCbuild9/build_pgo.bat')
-rw-r--r--PCbuild9/build_pgo.bat15
1 files changed, 8 insertions, 7 deletions
diff --git a/PCbuild9/build_pgo.bat b/PCbuild9/build_pgo.bat
index 22de997..0c0a473 100644
--- a/PCbuild9/build_pgo.bat
+++ b/PCbuild9/build_pgo.bat
@@ -23,18 +23,19 @@ set clrpath=%path1%
if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts
if "%1"=="-2" (set job=%job2%) & (set clrpath=%path2%) & shift & goto CheckOpts
-set folder=%platf%-pgo
-
+set PGI=%platf%-pgi
+set PGO=%platf%-pgo
@echo on
rem build the instrumented version
-call build -r -p %platf% -c PGInstrument
+call build -p %platf% -c PGInstrument
rem remove .pyc files, .pgc files and execute the job
-%folder%\python.exe rmpyc.py %clrpath%
-del %folder%\*.pgc
-%folder%\python.exe %job%
+%PGI%\python.exe rmpyc.py %clrpath%
+del %PGI%\*.pgc
+%PGI%\python.exe %job%
rem finally build the optimized version
-call build -r -p %platf% -c PGUpdate
+if exist %PGO% del /s /q %PGO%
+call build -p %platf% -c PGUpdate