Skip to content

Commit

Permalink
save a backup of csources-built nim to bin/nim_csources to avoid reco…
Browse files Browse the repository at this point in the history
…mpiling from csources (nim-lang#8582)
  • Loading branch information
timotheecour authored and Araq committed Aug 9, 2018
1 parent a2c5ffb commit 730ce53
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,20 @@ echo_run(){
}

[ -d csources ] || echo_run git clone --depth 1 https://github.com/nim-lang/csources.git
(

nim_csources=bin/nim_csources
build_nim_csources(){
## avoid changing dir in case of failure
echo_run cd csources
echo_run sh build.sh
)
(
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

echo_run bin/nim c koch
echo_run ./koch boot -d:release
Expand Down

0 comments on commit 730ce53

Please sign in to comment.