summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index cf8748a502..e29821f199 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -128,9 +128,9 @@ def setup_hosttools_dir(dest, toolsvar, d, fatal=True):
128 for tool in tools: 128 for tool in tools:
129 desttool = os.path.join(dest, tool) 129 desttool = os.path.join(dest, tool)
130 if not os.path.exists(desttool): 130 if not os.path.exists(desttool):
131 srctool = bb.utils.which(path, tool) 131 srctool = bb.utils.which(path, tool, executable=True)
132 if "ccache" in srctool: 132 if "ccache" in srctool:
133 srctool = bb.utils.which(path, tool, direction=1) 133 srctool = bb.utils.which(path, tool, executable=True, direction=1)
134 if srctool: 134 if srctool:
135 os.symlink(srctool, desttool) 135 os.symlink(srctool, desttool)
136 else: 136 else: