2
0

RegenAllByteCode.cmd 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. :: Regenerate all bytecode.
  6. :: ch.exe is used to generate Intl bytecodes.
  7. :: ch.exe (NoJIT variety) is used to generate NoJIT Intl bytecodes.
  8. :: Each set of bytecode requires an x86_debug and x64_debug binary.
  9. ::
  10. :: Thus we need to build the following:
  11. :: [Core] ch.exe x64_debug
  12. :: [Core] ch.exe x86_debug
  13. :: [Core] ch.exe x64_debug (NoJIT)
  14. :: [Core] ch.exe x86_debug (NoJIT)
  15. setlocal
  16. pushd %~dp0
  17. :: ch.exe x64_debug
  18. :: ch.exe x86_debug
  19. call jenkins\buildone.cmd x64 debug
  20. if %errorlevel% neq 0 (
  21. echo There was a build error for x64 debug. Stopping bytecode generation.
  22. exit /b 1
  23. )
  24. call jenkins\buildone.cmd x86 debug
  25. if %errorlevel% neq 0 (
  26. echo There was a build error for x86 debug. Stopping bytecode generation.
  27. exit /b 1
  28. )
  29. pushd lib\Runtime\Library\InJavascript
  30. call GenByteCode.cmd
  31. if %errorlevel% neq 0 (
  32. echo There was an error when regenerating bytecode header.
  33. exit /b 1
  34. )
  35. popd
  36. :: ch.exe x64_debug (NoJIT)
  37. :: ch.exe x86_debug (NoJIT)
  38. call jenkins\buildone.cmd x64 debug "/p:BuildJIT=false"
  39. if %errorlevel% neq 0 (
  40. echo There was a build error for x64 debug NoJIT. Stopping bytecode generation.
  41. exit /b 1
  42. )
  43. call jenkins\buildone.cmd x86 debug "/p:BuildJIT=false"
  44. if %errorlevel% neq 0 (
  45. echo There was a build error for x86 debug NoJIT. Stopping bytecode generation.
  46. exit /b 1
  47. )
  48. :: Generate Intl NoJIT Bytecodes using ch.exe (NoJIT)
  49. pushd lib\Runtime\Library\InJavascript
  50. call GenByteCode.cmd -nojit
  51. if %errorlevel% neq 0 (
  52. echo There was an error when regenerating bytecode header for NoJIT.
  53. exit /b 1
  54. )
  55. popd
  56. popd
  57. endlocal