2
0

RegenAllByteCodeNoBuild.cmd 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  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. :: WARNING: be careful when using this script as it assumes that
  6. :: you already have bytecode-format-compatible builds for all required flavors.
  7. :: This script helps speed things up when you are only making changes to scripts,
  8. :: e.g. Intl.js, without making any changes to bytecode format, since rebuilding
  9. :: every flavor of ChakraCore.dll when there are no relevant changes is a waste of time.
  10. :: Please ensure that you use buddy builds to validate the results.
  11. :: Regenerate all bytecode (without rebuilding each flavor of ch.exe)
  12. :: ch.exe is used to generate Intl bytecodes.
  13. :: ch.exe (NoJIT variety) is used to generate NoJIT Intl bytecodes.
  14. :: Each set of bytecode requires an x86_debug and x64_debug binary.
  15. ::
  16. :: Thus we need to already have compatible builds of the following:
  17. :: [Core] ch.exe x64_debug
  18. :: [Core] ch.exe x86_debug
  19. :: [Core] ch.exe x64_debug (NoJIT)
  20. :: [Core] ch.exe x86_debug (NoJIT)
  21. @echo off
  22. setlocal
  23. set _reporoot=%~dp0
  24. pushd %_reporoot%\lib\Runtime\Library\InJavascript
  25. call GenByteCode.cmd
  26. call GenByteCode.cmd -nojit
  27. popd
  28. pushd %_reporoot%\lib\Runtime\Library\JsBuiltIn
  29. call GenByteCode.cmd
  30. call GenByteCode.cmd -nojit
  31. popd
  32. endlocal