summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/base/interpreter.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 27b91c4e4..2a6280167 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -1000,6 +1000,14 @@ function interpreter:api_register_scope(...)
-- enter root scope
scopes._CURRENT = nil
scopes._CURRENT_KIND = nil
+ elseif scope_info and type(scope_info) == "function" then
+
+ -- configure scope info
+ scope_info()
+
+ -- enter root scope
+ scopes._CURRENT = nil
+ scopes._CURRENT_KIND = nil
end
end