summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-06-21 18:27:26 +0800
committerGitHub <[email protected]>2026-06-21 18:27:26 +0800
commitbcd6a836dd03db0418a6f5c604d63c96f887483a (patch)
treefa2ea7314e2f1c6dc36ff8ec1c6354dd2c22abb0
parent9ffe35f08b7a1be538e3529b5f4aacdd8bc4c8a7 (diff)
parent15cc7a3009104b8117865d98152e247850b48eea (diff)
Merge pull request #7583 from zhaob1n/fix/cmake-package-split-flags
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 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