Improve -with-bootstrap mode

- coreboot + opt.opt gives a faster build than bootstrap + opt.opt
- Restore the original bootstrap compilers on exit, so that
  other-configs works (it performs several builds in sequence).
master
Xavier Leroy 2020-05-21 16:42:30 +02:00
parent f82a84f3e8
commit b2f467abc0
1 changed files with 7 additions and 2 deletions

View File

@ -235,10 +235,11 @@ eval ./configure "$CCOMP" $build $host --prefix='$instdir' $confoptions
if $bootstrap; then
$make $jobs --warn-undefined-variables core
$make $jobs --warn-undefined-variables bootstrap
$make $jobs --warn-undefined-variables coreboot
if $make_native; then
$make $jobs --warn-undefined-variables opt
$make $jobs --warn-undefined-variables opt.opt
else
$make $jobs --warn-undefined-variables all
fi
else
$make $jobs --warn-undefined-variables
@ -264,3 +265,7 @@ if test -n "$jobs" && test -x /usr/bin/parallel
then PARALLEL="$jobs $PARALLEL" $make --warn-undefined-variables parallel
else $make --warn-undefined-variables all
fi
if $bootstrap; then
git checkout ../boot/ocamlc ../boot/ocamllex
fi