summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhaobin <[email protected]>2026-06-14 16:04:11 +0800
committerzhaobin <[email protected]>2026-06-14 16:04:11 +0800
commitfa0feade7d71918f898105827874f7a77853f10b (patch)
tree1e27aac50ca507c04dc55d7b82cfa3270e0ba2d7
parent8830f336c8e2b8dc9a08139d6d07d9e3f940b3cb (diff)
fix(package): split global flags for build envs
-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 2021452d7..02086096b 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 builtin_configs:has(key) and type(value) == "string" then
+ value = os.argv(value)
+ end
if value == nil then
value = self:tool(key)
end