post_pgo.cmd 986 B

12345678910111213141516171819202122232425262728293031
  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. :: - init_pgi.cmd
  7. :: - build (with PGI instrumentation enabled)
  8. :: * init_pgo.cmd
  9. :: - build (using PGO profile)
  10. set binpath_pgo=%1
  11. if "%binpath_pgo%"=="" (
  12. goto:usage
  13. )
  14. set POGO_TYPE=
  15. REM Clean binaries we no longer need
  16. if exist %binpath_pgo%\*.pgc ( del %binpath_pgo%\*.pgc )
  17. if exist %binpath_pgo%\*.pgd ( del %binpath_pgo%\*.pgd )
  18. if exist %binpath_pgo%\pgort* ( del %binpath_pgo%\pgort* )
  19. goto:eof
  20. :usage
  21. echo Invalid/missing arguments
  22. echo.
  23. echo Usage: post_pgo.cmd ^<binary_path^>
  24. echo - binary_path: output path of your binaries
  25. exit /b 1