post_pgo.cmd 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ::-------------------------------------------------------------------------------------------------------
  2. :: Copyright (C) Microsoft. All rights reserved.
  3. :: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. ::-------------------------------------------------------------------------------------------------------
  5. :: PGO Build Workflow:
  6. :: - pre_pgi.cmd
  7. :: - build (with PGI instrumentation enabled)
  8. :: - post_pgi.cmd
  9. :: - pogo_training.ps1
  10. :: - pre_pgo.cmd
  11. :: - build (using PGO profile)
  12. :: * post_pgo.cmd
  13. @echo off
  14. if "%PogoConfig%"=="False" (
  15. echo ---- Not a Pogo Config. Skipping step.
  16. exit /b 0
  17. )
  18. set binpath_pgo=%1
  19. if "%binpath_pgo%"=="" (
  20. goto:usage
  21. )
  22. set POGO_TYPE=
  23. REM Clean binaries we no longer need
  24. if exist %binpath_pgo%\*.pgc ( del %binpath_pgo%\*.pgc )
  25. if exist %binpath_pgo%\*.pgd ( del %binpath_pgo%\*.pgd )
  26. if exist %binpath_pgo%\pgort* ( del %binpath_pgo%\pgort* )
  27. goto:eof
  28. :usage
  29. echo Invalid/missing arguments
  30. echo.
  31. echo Usage: post_pgo.cmd ^<binary_path^>
  32. echo - binary_path: output path of your binaries
  33. exit /b 1