Skip to content

Commit bcd6a83

Browse files
authored
Merge pull request #7583 from zhaob1n/fix/cmake-package-split-flags
fix(package): split global flags for build envs
2 parents 9ffe35f + 15cc7a3 commit bcd6a83

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

xmake/core/package/package.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,9 @@ function _instance:build_envs(lazy_loading)
12891289
setmetatable(build_envs, { __index = function (tbl, key)
12901290
local result = {}
12911291
local value = config.get(key)
1292+
if value and builtin_configs:has(key) and type(value) == "string" then
1293+
value = os.argv(value)
1294+
end
12921295
if value == nil then
12931296
value = self:tool(key)
12941297
end

0 commit comments

Comments
 (0)