summaryrefslogtreecommitdiff
path: root/xmake/core/tool/tool.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-20 16:18:51 +0800
committerruki <[email protected]>2020-06-20 16:18:51 +0800
commit966b8dd7a01b09a93ba21ee4d2df0d471ab2282c (patch)
tree144af8b8bebb12e441402dcc90325cbb9949b494 /xmake/core/tool/tool.lua
parentda2e3b83c53752c43b651effeb273cb72090d7b0 (diff)
bind runenvs to has_flags
Diffstat (limited to 'xmake/core/tool/tool.lua')
-rw-r--r--xmake/core/tool/tool.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua
index b33727114..44df48bb0 100644
--- a/xmake/core/tool/tool.lua
+++ b/xmake/core/tool/tool.lua
@@ -165,6 +165,9 @@ function _instance:has_flags(flags, flagkind, opt)
-- import has_flags()
self._has_flags = self._has_flags or import("lib.detect.has_flags", {anonymous = true})
+ -- bind the run environments
+ opt.envs = self:runenvs()
+
-- has flags?
return self._has_flags(self:name(), flags, opt)
end