summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-06-14 22:54:51 +0800
committerGitHub <[email protected]>2026-06-14 22:54:51 +0800
commit15cc7a3009104b8117865d98152e247850b48eea (patch)
tree48ec3b7987262294741a1e2c6fc369606d1884d2
parentfa0feade7d71918f898105827874f7a77853f10b (diff)
Update package.lua
-rw-r--r--xmake/core/package/package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 02086096b..5c3a6b00d 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1289,7 +1289,7 @@ 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
+ if value and builtin_configs:has(key) and type(value) == "string" then
value = os.argv(value)
end
if value == nil then