summary refs log tree commit diff stats
path: root/build_all.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build_all.sh')
-rwxr-xr-x[-rw-r--r--]build_all.sh36
1 files changed, 10 insertions, 26 deletions
diff --git a/build_all.sh b/build_all.sh
index e22facc1b..83848f41a 100644..100755
--- a/build_all.sh
+++ b/build_all.sh
@@ -1,33 +1,17 @@
-#! /bin/sh
+#!/bin/sh
+# DO NO EDIT DIRECTLY! auto-generated by `nim r tools/ci_generate.nim`
 
-# build development version of the compiler; can be rerun safely
+# build development version of the compiler; can be rerun safely.
+# arguments can be passed, e.g.:
+# CC=gcc ucpu=amd64 uos=darwin
 
 set -u # error on undefined variables
 set -e # exit on first error
 
-echo_run(){
-  printf "\n$*\n"
-  "$@"
-}
+. ci/funs.sh
+nimBuildCsourcesIfNeeded "$@"
 
-[ -d csources ] || echo_run git clone --depth 1 https://github.com/nim-lang/csources.git
+echo_run bin/nim c --noNimblePath --skipUserCfg --skipParentCfg --hints:off koch
+echo_run ./koch boot -d:release --skipUserCfg --skipParentCfg --hints:off
+echo_run ./koch tools --skipUserCfg --skipParentCfg --hints:off
 
-nim_csources=bin/nim_csources
-build_nim_csources(){
-  ## avoid changing dir in case of failure
-  (
-    echo_run cd csources
-    echo_run sh build.sh $@
-  )
-  # keep $nim_csources in case needed to investigate bootstrap issues
-  # without having to rebuild from csources
-  echo_run cp bin/nim $nim_csources
-}
-
-[ -f $nim_csources ] || echo_run build_nim_csources $@
-
-# Note: if fails, may need to `cd csources && git pull`
-echo_run bin/nim c --skipUserCfg --skipParentCfg koch
-
-echo_run ./koch boot -d:release
-echo_run ./koch tools # Compile Nimble and other tools.