summaryrefslogtreecommitdiffstats
path: root/PCbuild/build_pgo.bat
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2014-07-07 18:39:59 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2014-07-07 18:39:59 (GMT)
commite12fa657447c91356b3c52dac9b1e4da937bd26c (patch)
tree3013b95e11de6fb2e2769e791a1810ebdef9ee1c /PCbuild/build_pgo.bat
parentb132069ea45329c30a7caa067f6f5ed0285c8c88 (diff)
downloadcpython-e12fa657447c91356b3c52dac9b1e4da937bd26c.zip
cpython-e12fa657447c91356b3c52dac9b1e4da937bd26c.tar.gz
cpython-e12fa657447c91356b3c52dac9b1e4da937bd26c.tar.bz2
Issue #21907: Improved the batch scripts provided for building Python.
The user-facing scripts in PCbuild have been updated to be easier to use and the buildbot scripts in Tools\buildbot have been updated to use the user-facing scripts in PCbuild wherever possible.
Diffstat (limited to 'PCbuild/build_pgo.bat')
-rw-r--r--PCbuild/build_pgo.bat12
1 files changed, 6 insertions, 6 deletions
diff --git a/PCbuild/build_pgo.bat b/PCbuild/build_pgo.bat
index 0c0a473..6ead19a 100644
--- a/PCbuild/build_pgo.bat
+++ b/PCbuild/build_pgo.bat
@@ -9,12 +9,12 @@ setlocal
set platf=Win32
rem use the performance testsuite. This is quick and simple
-set job1=..\tools\pybench\pybench.py -n 1 -C 1 --with-gc
-set path1=..\tools\pybench
+set job1=%~dp0..\tools\pybench\pybench.py -n 1 -C 1 --with-gc
+set path1=%~dp0..\tools\pybench
rem or the whole testsuite for more thorough testing
-set job2=..\lib\test\regrtest.py
-set path2=..\lib
+set job2=%~dp0..\lib\test\regrtest.py
+set path2=%~dp0..\lib
set job=%job1%
set clrpath=%path1%
@@ -31,9 +31,9 @@ rem build the instrumented version
call build -p %platf% -c PGInstrument
rem remove .pyc files, .pgc files and execute the job
-%PGI%\python.exe rmpyc.py %clrpath%
+%PGI%\python.exe rmpyc.py "%clrpath%"
del %PGI%\*.pgc
-%PGI%\python.exe %job%
+%PGI%\python.exe "%job%"
rem finally build the optimized version
if exist %PGO% del /s /q %PGO%