build_all.bat 1.1 KB

123456789101112131415161718192021222324252627282930
  1. @echo off
  2. rem DO NO EDIT DIRECTLY! auto-generated by `nim r tools/ci_generate.nim`
  3. rem Build development version of the compiler; can be rerun safely
  4. rem bare bones version of ci/funs.sh adapted for windows.
  5. rem Read in some common shared variables (shared with other tools),
  6. rem see https://stackoverflow.com/questions/3068929/how-to-read-file-contents-into-a-variable-in-a-batch-file
  7. for /f "delims== tokens=1,2" %%G in (config/build_config.txt) do set %%G=%%H
  8. SET nim_csources=bin\nim_csources_%nim_csourcesHash%.exe
  9. echo "building from csources: %nim_csources%"
  10. if not exist %nim_csourcesDir% (
  11. git clone -q --depth 1 -b %nim_csourcesBranch% %nim_csourcesUrl% %nim_csourcesDir%
  12. )
  13. if not exist %nim_csources% (
  14. cd %nim_csourcesDir%
  15. git checkout %nim_csourcesHash%
  16. echo "%PROCESSOR_ARCHITECTURE%"
  17. if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
  18. SET ARCH=64
  19. )
  20. CALL build.bat
  21. cd ..
  22. copy /y bin\nim.exe %nim_csources%
  23. )
  24. bin\nim.exe c --noNimblePath --skipUserCfg --skipParentCfg --hints:off koch
  25. koch boot -d:release --skipUserCfg --skipParentCfg --hints:off
  26. koch tools --skipUserCfg --skipParentCfg --hints:off