summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/icecc-toolchain
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/icecc-toolchain')
-rw-r--r--meta/recipes-devtools/icecc-toolchain/icecc-toolchain/icecc-env.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/meta/recipes-devtools/icecc-toolchain/icecc-toolchain/icecc-env.sh b/meta/recipes-devtools/icecc-toolchain/icecc-toolchain/icecc-env.sh
index 9c9bb4dc4e..94760076bf 100644
--- a/meta/recipes-devtools/icecc-toolchain/icecc-toolchain/icecc-env.sh
+++ b/meta/recipes-devtools/icecc-toolchain/icecc-toolchain/icecc-env.sh
@@ -25,7 +25,19 @@ if [ -z "$ICECC_PATH" ]; then
25fi 25fi
26 26
27if [ -n "$ICECC_PATH" ]; then 27if [ -n "$ICECC_PATH" ]; then
28 export ICECC_PATH 28 # Default to disabling the caret workaround. If set to "1", icecc will
29 # locally recompile any files that have warnings, which can adversely
30 # affect performance.
31 #
32 # See: https://github.com/icecc/icecream/issues/190
33 if [ -z "$ICECC_CARET_WORKAROUND" ]; then
34 ICECC_CARET_WORKAROUND="0"
35 fi
36 if [ "$ICECC_CARET_WORKAROUND" != "1" ]; then
37 CFLAGS="$CFLAGS -fno-diagnostics-show-caret"
38 CXXFLAGS="$CXXFLAGS -fno-diagnostics-show-caret"
39 fi
40 export ICECC_PATH ICECC_CARET_WORKAROUND
29 export ICECC_VERSION="$OECORE_NATIVE_SYSROOT/usr/share/icecream/@TOOLCHAIN_ENV@" 41 export ICECC_VERSION="$OECORE_NATIVE_SYSROOT/usr/share/icecream/@TOOLCHAIN_ENV@"
30 export ICECC="$(which ${CROSS_COMPILE}gcc)" 42 export ICECC="$(which ${CROSS_COMPILE}gcc)"
31 export ICECXX="$(which ${CROSS_COMPILE}g++)" 43 export ICECXX="$(which ${CROSS_COMPILE}g++)"