Re: [PATCH] Speed up stage0 bootstrap build using prebuilts

Jonas Hahnfeld via "Developers list for Guile, the GNU extensibility library" <[email protected]>
Newsgroups gmane.lisp.guile.devel,gmane.lisp.guile.bugs
Message-ID <[email protected]>
Dear Guile maintainers,

please consider below patch to speed up the build from release tarballs
that include prebuilt bytecode.

Jonas

On Thu, 2024-01-04 at 11:57 +0100, Jonas Hahnfeld wrote:
> From 95f15821c535537c7ad4fdae1988855314d56ece Mon Sep 17 00:00:00 2001
> From: Jonas Hahnfeld <[email protected]>
> Date: Thu, 4 Jan 2024 11:44:55 +0100
> Subject: [PATCH] Speed up stage0 bootstrap build using prebuilts
> 
> Use prebuilt bytecode of ice-9/eval.go and others for all of stage0,
> it is optimized and evaluation is much faster. In my environment,
> this speeds up the build of guile-3.0.9 from around 29 minutes to
> only 19 minutes.
> 
> * meta/build-env.in: In stage0, prefer prebuilt bytecode over just
> compiled stage0 files.
> ---
>  meta/build-env.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/build-env.in b/meta/build-env.in
> index bdc88ded4..446a536af 100644
> --- a/meta/build-env.in
> +++ b/meta/build-env.in
> @@ -58,7 +58,7 @@ then
>      fi
>      export GUILE_LOAD_PATH
>      case "$GUILE_BOOTSTRAP_STAGE" in
> -        stage0) GUILE_LOAD_COMPILED_PATH="${top_builddir}/stage0:${top_srcdir}/prebuilt/@SCM_PREBUILT_BINARIES@" ;;
> +        stage0) GUILE_LOAD_COMPILED_PATH="${top_srcdir}/prebuilt/@SCM_PREBUILT_BINARIES@:${top_builddir}/stage0" ;;
>          stage1) GUILE_LOAD_COMPILED_PATH="${top_builddir}/stage1:${top_builddir}/stage0" ;;
>          stage2) GUILE_LOAD_COMPILED_PATH="${top_builddir}/stage1" ;;
>          *) GUILE_LOAD_COMPILED_PATH="${top_builddir}/stage2:${top_builddir}/guile-readline" ;;
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEXw/5YGpL6H9VOgO2kcnDPSxhrNsFAmXXqdwACgkQkcnDPSxh
rNtfxwf/TQ9sbfIOvSq5TFxwPIPEERp8aStYgJp+9XepWNguGP2OiMwnb6Bi4pMv
noUGccv7kkQr8aBz4e0NDtwyT8Msrnlyw2To3rOG2mLQZQNhCQvPcyo1RFxA46yd
LhwynV8FHaayPKAqhLjhqn4liaYRvhIGXqGwOgyreJEbYneILGdd/TQtRLJjWlGt
lvCf+NumhiackqvTiE6WDoMD9AY49+jJIdZPxtN08LiNH3O3xLDYLeqzTGDsUsBj
ClLda/Utq2W1WMbNsfLpjgct975fJyEt3JK2cYjW2hyb9oslpOdn96m+tPuxb57g
2snnvxdO5E80XSAK1c9J5zVxYGOmgA==
=AekP
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.