diff options
Diffstat (limited to 'meta/classes/icecc.bbclass')
-rw-r--r-- | meta/classes/icecc.bbclass | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index 8492ece60c..e8f7eab1bc 100644 --- a/meta/classes/icecc.bbclass +++ b/meta/classes/icecc.bbclass | |||
@@ -28,10 +28,23 @@ | |||
28 | #Error checking is kept to minimum so double check any parameters you pass to the class | 28 | #Error checking is kept to minimum so double check any parameters you pass to the class |
29 | ########################################################################################### | 29 | ########################################################################################### |
30 | 30 | ||
31 | BB_HASHBASE_WHITELIST += "ICECC_PARALLEL_MAKE ICECC_DISABLED ICECC_USER_PACKAGE_BL ICECC_USER_CLASS_BL ICECC_USER_PACKAGE_WL ICECC_PATH ICECC_ENV_EXEC" | 31 | BB_HASHBASE_WHITELIST += "ICECC_PARALLEL_MAKE ICECC_DISABLED ICECC_USER_PACKAGE_BL \ |
32 | ICECC_USER_CLASS_BL ICECC_USER_PACKAGE_WL ICECC_PATH ICECC_ENV_EXEC \ | ||
33 | ICECC_CARET_WORKAROUND ICECC_CFLAGS" | ||
32 | 34 | ||
33 | ICECC_ENV_EXEC ?= "${STAGING_BINDIR_NATIVE}/icecc-create-env" | 35 | ICECC_ENV_EXEC ?= "${STAGING_BINDIR_NATIVE}/icecc-create-env" |
34 | 36 | ||
37 | # Default to disabling the caret workaround, If set to "1" in local.conf, icecc | ||
38 | # will locally recompile any files that have warnings, which can adversely | ||
39 | # affect performance. | ||
40 | # | ||
41 | # See: https://github.com/icecc/icecream/issues/190 | ||
42 | export ICECC_CARET_WORKAROUND ??= "0" | ||
43 | |||
44 | ICECC_CFLAGS = "" | ||
45 | CFLAGS += "${ICECC_CFLAGS}" | ||
46 | CXXFLAGS += "${ICECC_CFLAGS}" | ||
47 | |||
35 | def icecc_dep_prepend(d): | 48 | def icecc_dep_prepend(d): |
36 | # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command. Whether or not | 49 | # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command. Whether or not |
37 | # we need that built is the responsibility of the patch function / class, not | 50 | # we need that built is the responsibility of the patch function / class, not |
@@ -170,6 +183,11 @@ def icecc_version(bb, d): | |||
170 | if not d.getVar('PARALLEL_MAKE', False) == "" and parallel: | 183 | if not d.getVar('PARALLEL_MAKE', False) == "" and parallel: |
171 | d.setVar("PARALLEL_MAKE", parallel) | 184 | d.setVar("PARALLEL_MAKE", parallel) |
172 | 185 | ||
186 | # Disable showing the caret in the GCC compiler output if the workaround is | ||
187 | # disabled | ||
188 | if d.getVar('ICECC_CARET_WORKAROUND', True) == '0': | ||
189 | d.setVar('ICECC_CFLAGS', '-fno-diagnostics-show-caret') | ||
190 | |||
173 | if icecc_is_native(bb, d): | 191 | if icecc_is_native(bb, d): |
174 | archive_name = "local-host-env" | 192 | archive_name = "local-host-env" |
175 | elif d.expand('${HOST_PREFIX}') == "": | 193 | elif d.expand('${HOST_PREFIX}') == "": |