summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-04-21 22:12:21 +0800
committerruki <[email protected]>2019-04-21 22:12:21 +0800
commit7e50a99af45fe32e6ea3567925b3ab19b67da0dc (patch)
treef651f67a3376a6ec68f806d03e0c3f8cd6698b1b /xmake/core/package/package.lua
parent36b8963329d23282a8022fc4c117909c3754f40e (diff)
pass build envs got autoconf
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index b08e23ecb..41ebaae6f 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -420,8 +420,9 @@ function _instance:build_envs(lazy_loading)
if value == nil then
value = platform.tool(key, self:plat())
end
- if value ~= nil then
- rawset(tbl, key, value)
+ value = table.unique(table.join(table.wrap(value), self:config(key)))
+ if #value > 0 then
+ rawset(tbl, key, os.args(value))
return value
end
return rawget(tbl, key)