-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add build_all.sh to allow 1-liner to build development version of the…
… compiler (#8546)
- Loading branch information
1 parent
32b6209
commit 506418e
Showing
2 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! /bin/sh | ||
|
||
# build development version of the compiler; can be rerun safely | ||
|
||
set -u # error on undefined variables | ||
set -e # exit on first error | ||
|
||
echo_run(){ | ||
echo "\n$@" | ||
"$@" | ||
} | ||
|
||
[ -d csources ] || echo_run git clone --depth 1 https://github.com/nim-lang/csources.git | ||
( | ||
## avoid changing dir in case of failure | ||
echo_run cd csources | ||
echo_run sh build.sh | ||
) | ||
|
||
echo_run bin/nim c koch | ||
echo_run ./koch boot -d:release | ||
echo_run ./koch tools # Compile Nimble and other tools. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters