post_pgo.cmd 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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%\*.lib ( del %binpath_pgo%\*.lib )
  25. if exist %binpath_pgo%\*.pgc ( del %binpath_pgo%\*.pgc )
  26. if exist %binpath_pgo%\*.pgd ( del %binpath_pgo%\*.pgd )
  27. if exist %binpath_pgo%\pgort* ( del %binpath_pgo%\pgort* )
  28. goto:eof
  29. :usage
  30. echo Invalid/missing arguments
  31. echo.
  32. echo Usage: post_pgo.cmd ^<binary_path^>
  33. echo - binary_path: output path of your binaries
  34. exit /b 1