summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-08-06 22:34:03 +0800
committerruki <[email protected]>2020-08-06 22:34:03 +0800
commit274bdc348143e94ccb1aaf6583ae0aec4aa1daef (patch)
tree6300e6721e6d571565b3ed3b6c24d34ba59436ff /xmake/core/base/interpreter.lua
parent3c11c7c124de970d139b3ef634b5472e75681825 (diff)
fix scope api_set
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 854212cc9..831065c68 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -1043,7 +1043,12 @@ function interpreter:api_register_set_values(scope_kind, ...)
end
-- save values
- scope[name] = values
+ if #values > 0 then
+ scope[name] = values
+ else
+ -- set("xx", nil)? remove it
+ scope[name] = nil
+ end
-- save extra config
if extra_config then