summaryrefslogtreecommitdiff
path: root/xmake/core/base/scopeinfo.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-03-21 23:07:41 +0800
committerruki <[email protected]>2023-03-21 23:07:41 +0800
commit0ab2f772ccec12986c2755c182d73b67c688cd0d (patch)
tree67570579430f4b517ae64f8c7f73a9043b96371a /xmake/core/base/scopeinfo.lua
parent8d75606dbf979386ed314bcbc01ef38dcfa10a5e (diff)
fix fallback build
Diffstat (limited to 'xmake/core/base/scopeinfo.lua')
-rw-r--r--xmake/core/base/scopeinfo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/scopeinfo.lua b/xmake/core/base/scopeinfo.lua
index 359bcba9e..cdc43c4bc 100644
--- a/xmake/core/base/scopeinfo.lua
+++ b/xmake/core/base/scopeinfo.lua
@@ -130,7 +130,7 @@ function _instance:_api_set_values(name, ...)
local handled_values = self:_api_handle(name, values)
-- save values
- if type(handled_values) == "table" and #handled_values == 0 then
+ if type(handled_values) == "table" and table.empty(handled_values) then
-- set("xx", nil)? remove it
scope[name] = nil
else