diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-06-18 20:38:49 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-06-18 20:38:49 +0200 |
commit | a1e929d4cdd7e1ff42cd3593cc7b6da9c1b63cc3 (patch) | |
tree | a02aa917b9fe63ccb6c40e982f454ce871dcdfa5 /scripts | |
parent | 6427f02ead6bfd4cbca5ec2b371e4a84a978f5a0 (diff) | |
download | ptxdist-a1e929d4cdd7e1ff42cd3593cc7b6da9c1b63cc3.tar.gz ptxdist-a1e929d4cdd7e1ff42cd3593cc7b6da9c1b63cc3.tar.xz |
ptxdist: add support for icecc
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/wrapper/g++-wrapper | 2 | ||||
-rwxr-xr-x | scripts/wrapper/gcc-wrapper | 2 | ||||
-rwxr-xr-x | scripts/wrapper/host-g++-wrapper | 1 | ||||
-rwxr-xr-x | scripts/wrapper/host-gcc-wrapper | 1 | ||||
-rw-r--r-- | scripts/wrapper/libwrapper.sh | 4 |
5 files changed, 8 insertions, 2 deletions
diff --git a/scripts/wrapper/g++-wrapper b/scripts/wrapper/g++-wrapper index 61e3a64bb..4f7153c17 100755 --- a/scripts/wrapper/g++-wrapper +++ b/scripts/wrapper/g++-wrapper @@ -2,6 +2,8 @@ . "$(dirname "$(readlink -f "$0")")/libwrapper.sh" || exit +export ICECC_VERSION="${ICECC_VERSION_TARGET}" + cc_check_args "${@}" cc_add_target_ld_args diff --git a/scripts/wrapper/gcc-wrapper b/scripts/wrapper/gcc-wrapper index 6b75f6fa1..4bbc75a80 100755 --- a/scripts/wrapper/gcc-wrapper +++ b/scripts/wrapper/gcc-wrapper @@ -2,6 +2,8 @@ . "$(dirname "$(readlink -f "$0")")/libwrapper.sh" || exit +export ICECC_VERSION="${ICECC_VERSION_TARGET}" + cc_check_args "${@}" cc_add_target_ld_args diff --git a/scripts/wrapper/host-g++-wrapper b/scripts/wrapper/host-g++-wrapper index 68966133a..c5d187cc1 100755 --- a/scripts/wrapper/host-g++-wrapper +++ b/scripts/wrapper/host-g++-wrapper @@ -2,6 +2,7 @@ . "$(dirname "$(readlink -f "$0")")/libwrapper.sh" || exit +export ICECC_VERSION="${ICECC_VERSION_HOST}" HOST=true cc_check_args "${@}" diff --git a/scripts/wrapper/host-gcc-wrapper b/scripts/wrapper/host-gcc-wrapper index 07c00c473..6ec29e934 100755 --- a/scripts/wrapper/host-gcc-wrapper +++ b/scripts/wrapper/host-gcc-wrapper @@ -2,6 +2,7 @@ . "$(dirname "$(readlink -f "$0")")/libwrapper.sh" || exit +export ICECC_VERSION="${ICECC_VERSION_HOST}" HOST=true cc_check_args "${@}" diff --git a/scripts/wrapper/libwrapper.sh b/scripts/wrapper/libwrapper.sh index bed465348..d501c8ed1 100644 --- a/scripts/wrapper/libwrapper.sh +++ b/scripts/wrapper/libwrapper.sh @@ -23,9 +23,9 @@ fi wrapper_exec() { PATH="$(echo "${PATH}" | sed "s;${PTXDIST_PATH_SYSROOT_HOST}/lib/wrapper:;;")" if [ "${PTXDIST_VERBOSE}" = 1 -a -n "${PTXDIST_FD_LOGFILE}" ]; then - echo "wrapper: ${PTXDIST_CCACHE} ${0##*/} ${ARG_LIST} $* ${LATE_ARG_LIST}" >&${PTXDIST_FD_LOGFILE} + echo "wrapper: ${PTXDIST_ICECC}${PTXDIST_CCACHE} ${0##*/} ${ARG_LIST} $* ${LATE_ARG_LIST}" >&${PTXDIST_FD_LOGFILE} fi - exec ${PTXDIST_CCACHE} "${0%/*}/real/${0##*/}" ${ARG_LIST} "$@" ${LATE_ARG_LIST} + exec ${PTXDIST_ICECC}${PTXDIST_CCACHE} "${0%/*}/real/${0##*/}" ${ARG_LIST} "$@" ${LATE_ARG_LIST} } cc_check_args() { |