summary refs log tree commit diff stats
path: root/build_all.bat
diff options
context:
space:
mode:
authortreeform <starplant@gmail.com>2019-10-08 02:00:37 -0700
committerAndreas Rumpf <rumpf_a@web.de>2019-10-08 11:00:37 +0200
commitdbcffcfccb39a35f2f8e2447a22776e5e761ce72 (patch)
tree84cf65e61f82da089ad44e8e9a95b83e4efcd419 /build_all.bat
parent89c37fada7a569a3e3d149bbc34394fb1fb34cb1 (diff)
downloadNim-dbcffcfccb39a35f2f8e2447a22776e5e761ce72.tar.gz
Easier build instructions for windows - just run `build_all.bat`. (#12276)
* Easier build instructions for windows.

* title letter

* Update build_all.bat to be like build_all.sh
Diffstat (limited to 'build_all.bat')
-rw-r--r--build_all.bat16
1 files changed, 16 insertions, 0 deletions
diff --git a/build_all.bat b/build_all.bat
new file mode 100644
index 000000000..59df15594
--- /dev/null
+++ b/build_all.bat
@@ -0,0 +1,16 @@
+@echo off
+rem build development version of the compiler; can be rerun safely
+if not exist csources (
+  git clone --depth 1 https://github.com/nim-lang/csources.git
+)
+if not exist bin\nim.exe (
+  cd csources
+  if PROCESSOR_ARCHITECTURE == AMD64 (
+    SET ARCH=64
+  )
+  CALL build.bat
+  cd ..
+)
+bin\nim.exe c --skipUserCfg --skipParentCfg koch
+koch.exe boot -d:release
+koch.exe tools
\ No newline at end of file