2
0

RegenAllByteCodeNoBuild.cmd 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  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. :: Note, this script is windows only, on linux or macOS please use tools/xplatRegenByteCode.py
  12. :: Regenerate all bytecode (without rebuilding each flavor of ch.exe)
  13. :: ch.exe is used to generate Intl bytecodes.
  14. :: ch.exe (NoJIT variety) is used to generate NoJIT Intl bytecodes.
  15. :: Each set of bytecode requires an x86_debug and x64_debug binary.
  16. ::
  17. :: Thus we need to already have compatible builds of the following:
  18. :: [Core] ch.exe x64_debug
  19. :: [Core] ch.exe x86_debug
  20. :: [Core] ch.exe x64_debug (NoJIT)
  21. :: [Core] ch.exe x86_debug (NoJIT)
  22. @echo off
  23. setlocal
  24. set _reporoot=%~dp0
  25. pushd %_reporoot%\lib\Runtime\Library\InJavascript
  26. call GenByteCode.cmd
  27. call GenByteCode.cmd -nojit
  28. popd
  29. pushd %_reporoot%\lib\Runtime\Library\JsBuiltIn
  30. call GenByteCode.cmd
  31. call GenByteCode.cmd -nojit
  32. popd
  33. endlocal