summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/package/package.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 674e17e28..7a38b812f 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1289,6 +1289,9 @@ function _instance:build_envs(lazy_loading)
setmetatable(build_envs, { __index = function (tbl, key)
local result = {}
local value = config.get(key)
+ if value and builtin_configs:has(key) and type(value) == "string" then
+ value = os.argv(value)
+ end
if value == nil then
value = self:tool(key)
end