diff options
author | Fabian Groffen <grobian@gentoo.org> | 2024-07-21 10:49:49 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2024-07-21 10:49:49 +0200 |
commit | d718d0ee9fb3d3f7d958c0065d4c937cf98d6139 (patch) | |
tree | 91cce358925f8617d0e1e57aeda5244cd5e6baff | |
parent | sys-devel/gcc-14.1.0: bring back src_configure for Solaris (diff) | |
download | prefix-d718d0ee9fb3d3f7d958c0065d4c937cf98d6139.tar.gz prefix-d718d0ee9fb3d3f7d958c0065d4c937cf98d6139.tar.bz2 prefix-d718d0ee9fb3d3f7d958c0065d4c937cf98d6139.zip |
scripts/bootstrap-prefix: improve emake error reporting
If make fails, run with forced -j1 to get a clearer error for debugging
purposes.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-x | scripts/bootstrap-prefix.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 024a77392a..f49a595ad0 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -44,7 +44,10 @@ emake() { estatus "stage1: building ${PWD##*/}" fi read -r -a makeopts <<< "${MAKEOPTS}" - v "${MAKE}" "${makeopts[@]}" "$@" || return 1 + if ! v "${MAKE}" "${makeopts[@]}" "$@" ; then + estatus "stage1: retry with -j1 for clearer error message in ${PWD##*/}" + v "${MAKE}" "${makeopts[@]}" "$@" -j1 || return 1 + fi } efetch() { |