Skip to content

Commit

Permalink
Merge pull request #3281 from citrus-it/baseline
Browse files Browse the repository at this point in the history
cross-arch baseline checks do not work
  • Loading branch information
oetiker committed Jul 7, 2023
2 parents 51791bb + a3de191 commit 185b7f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build/buildctl
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ parallel_build() {
# Do this now to avoid a race in the child tasks
init_repos

save_variable PKGSRVR
if [ -n "$CLIBUILDARCH" ]; then
PKGSRVR=${REPOS[$CLIBUILDARCH]}
SKIP_KAYAK_KERNEL=1
Expand Down Expand Up @@ -760,6 +761,7 @@ parallel_build() {
note -e "***** BUILD ERROR ***** ($b)"
done
else
restore_variable PKGSRVR
baseline check
fi

Expand Down
12 changes: 11 additions & 1 deletion lib/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,8 @@ update_sysroot() {
for arch in ${!SYSROOT[@]}; do
logmsg "--- updating sysroot for $arch"
logcmd $PKGCLIENT -R ${SYSROOT[$arch]} install '*'
# Exit status 4 means "nothing to do", so we accept that as success.
(($? == 0 || $? == 4)) || logerr "--- sysroot update failed"
done
}

Expand Down Expand Up @@ -2733,6 +2735,7 @@ run_testsuite() {
pushd $TMPDIR/$MULTI_BUILD_LAST/$dir > /dev/null
fi
logmsg "Running testsuite"
hook pre_test
op=`$MKTEMP`
eval set -- $MAKE_TESTSUITE_ARGS_WS
$TESTSUITE_MAKE $target $MAKE_TESTSUITE_ARGS "$@" 2>&1 | $TEE $op
Expand All @@ -2744,6 +2747,7 @@ run_testsuite() {
$CP $op $SRCDIR/$output
fi
logcmd $RM -f $op
hook post_test
popd > /dev/null
fi
}
Expand All @@ -2758,14 +2762,16 @@ build_dependency() {
typeset merge=0
typeset oot=0
typeset meson=0
typeset cmake=0
typeset buildargs=
while [[ "$1" = -* ]]; do
case $1 in
-merge) merge=1 ;;
-ctf) buildargs+=" -ctf" ;;
-noctf) buildargs+=" -noctf" ;;
-meson) meson=1 ;& #FALLTHROUGH
-oot) oot=1 ;;
-meson) meson=1 ; oot=1 ;;
-cmake) cmake=1; oot=1 ;;
-multi) buildargs+=" -multi" ;;
esac
shift
Expand Down Expand Up @@ -2802,6 +2808,10 @@ build_dependency() {
MAKE=$NINJA
CONFIGURE_CMD="/usr/lib/python$PYTHONVER/bin/meson setup"
CONFIGURE_CMD+=" $TMPDIR/$BUILDDIR"
elif ((cmake)); then
MAKE=$NINJA
CONFIGURE_CMD="$CMAKE -GNinja"
CONFIGURE_CMD+=" $TMPDIR/$BUILDDIR"
else
CONFIGURE_CMD=$TMPDIR/$BUILDDIR/$CONFIGURE_CMD
fi
Expand Down

0 comments on commit 185b7f8

Please sign in to comment.