1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

icecc: Log reason in error cases

The current implementation doesn't give a hint about the cause in case
something went wrong in set_icecc_env. This makes it harder to find
out why a package is not being built using icecc. Therefore warnings
are inserted in the various error cases.

(From OE-Core rev: 0adea170c7019304471d442784fa0eb9bfcdf94b)

Signed-off-by: Tobias Henkel <tobias.henkel@bmw-carit.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Tobias Henkel
2013-11-12 09:33:55 +01:00
committed by Richard Purdie
parent 9f56718722
commit 79272eb058
+4
View File
@@ -196,12 +196,14 @@ set_icecc_env() {
ICECC_VERSION="${@icc_version(bb, d)}" ICECC_VERSION="${@icc_version(bb, d)}"
if [ "x${ICECC_VERSION}" = "x" ] if [ "x${ICECC_VERSION}" = "x" ]
then then
bbwarn "Cannot use icecc: could not get ICECC_VERSION"
return return
fi fi
ICE_PATH="${@icc_path(bb, d)}" ICE_PATH="${@icc_path(bb, d)}"
if [ "x${ICE_PATH}" = "x" ] if [ "x${ICE_PATH}" = "x" ]
then then
bbwarn "Cannot use icecc: could not get ICE_PATH"
return return
fi fi
@@ -209,6 +211,7 @@ set_icecc_env() {
ICECC_CXX="${@icc_get_and_check_tool(bb, d, "g++")}" ICECC_CXX="${@icc_get_and_check_tool(bb, d, "g++")}"
if [ ! -x "${ICECC_CC}" -o ! -x "${ICECC_CXX}" ] if [ ! -x "${ICECC_CC}" -o ! -x "${ICECC_CXX}" ]
then then
bbwarn "Cannot use icecc: could not get ICECC_CC or ICECC_CXX"
return return
fi fi
@@ -216,6 +219,7 @@ set_icecc_env() {
ICECC_VERSION=`echo ${ICECC_VERSION} | sed -e "s/@VERSION@/$ICE_VERSION/g"` ICECC_VERSION=`echo ${ICECC_VERSION} | sed -e "s/@VERSION@/$ICE_VERSION/g"`
if [ ! -x "${ICECC_ENV_EXEC}" ] if [ ! -x "${ICECC_ENV_EXEC}" ]
then then
bbwarn "Cannot use icecc: invalid ICECC_ENV_EXEC"
return return
fi fi