Skip to content

Commit

Permalink
ROOT Dictionary: Fix error handling in wrapper for dictionary generation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Sep 5, 2024
1 parent 8e63310 commit 4720c16
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmake/rootcling_wrapper.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ LOGFILE=${DICTIONARY_FILE}.log
${COMPILE_DEFINITIONS//;/ } \
${PCMDEPS:+-m }${PCMDEPS//;/ -m } \
${HEADERS//;/ } \
> ${LOGFILE} 2>&1 || cat ${LOGFILE} >&2
> ${LOGFILE} 2>&1 || ROOTCLINGRETVAL=$?

if [[ $? != "0" ]]; then
rm $DICTIONARY_FILE
if [[ ${ROOTCLINGRETVAL:-0} != "0" ]]; then
cat ${LOGFILE} >&2
rm -f $DICTIONARY_FILE
echo "ROOT CLING Dictionary generation of $DICTIONARY_FILE failed with error code $ROOTCLINGRETVAL"
exit 1
fi

Expand Down

0 comments on commit 4720c16

Please sign in to comment.