summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/utils.py')
-rw-r--r--meta/lib/oe/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index f22a6ab..fbda703 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -342,9 +342,12 @@ def format_pkg_list(pkg_dict, ret_format=None):
342 342
343 return '\n'.join(output) 343 return '\n'.join(output)
344 344
345def host_gcc_version(d): 345def host_gcc_version(d, taskcontextonly=False):
346 import re, subprocess 346 import re, subprocess
347 347
348 if taskcontextonly and d.getVar('BB_WORKERCONTEXT') != '1':
349 return
350
348 compiler = d.getVar("BUILD_CC") 351 compiler = d.getVar("BUILD_CC")
349 try: 352 try:
350 env = os.environ.copy() 353 env = os.environ.copy()