summary refs log tree commit diff stats
path: root/readme.md
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-08-08 07:47:17 -0700
committerAndreas Rumpf <rumpf_a@web.de>2018-08-08 16:47:17 +0200
commit506418ef539a9142307235c0cd0183f0d7aec749 (patch)
tree682f50be36ac83e474636c8b0bcea2d1f944bee2 /readme.md
parent32b62097a2636c5053d842939d34e2a0fa3f9e33 (diff)
downloadNim-506418ef539a9142307235c0cd0183f0d7aec749.tar.gz
add build_all.sh to allow 1-liner to build development version of the compiler (#8546)
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md25
1 files changed, 17 insertions, 8 deletions
diff --git a/readme.md b/readme.md
index bdc7c7549..e4fb52bd0 100644
--- a/readme.md
+++ b/readme.md
@@ -50,24 +50,33 @@ Next, to build from source you will need:
     other distros as well). 
 
 Then, if you are on a \*nix system or Windows, the following steps should compile
-Nim from source using ``gcc``, ``git`` and the ``koch`` build tool (in the place
-of ``sh build.sh`` you should substitute ``build.bat`` on x86 Windows or
-``build64.bat`` on x86_64 Windows):
+Nim from source using ``gcc``, ``git`` and the ``koch`` build tool.
 
 **Note: The following commands are for the development version of the compiler.**
 For most users, installing the latest stable version is enough. Check out
 the installation instructions on the website to do so: https://nim-lang.org/install.html.
 
 ```
+# step 1:
 git clone https://github.com/nim-lang/Nim.git
 cd Nim
+
+# step 2 (posix) clones `csources.git`, bootstraps Nim compiler and compiles tools
+sh build_all.sh
+
+# step 2 (windows)
 git clone --depth 1 https://github.com/nim-lang/csources.git
+
 cd csources
-sh build.sh
-cd ../
-bin/nim c koch
-./koch boot -d:release
-./koch tools # Compile Nimble and other tools.
+# requires `gcc` in your PATH, see also https://nim-lang.org/install_windows.html
+build.bat # x86 Windows
+build64.bat # x86_64 Windows
+cd ..
+
+bin\nim c koch
+koch boot -d:release
+koch tools # Compile Nimble and other tools
+# end of step 2 (windows)
 ```
 
 Finally, once you have finished the build steps (on Windows, Mac or Linux) you