summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-02-13 00:19:49 +0800
committerruki <[email protected]>2019-02-12 19:58:56 +0800
commit9c74761cb07a83bed1fb358dbbf3a87b32322c3b (patch)
tree355bec84e2b0e164092cdc232d7313c87ae481bf /xmake/core/base/interpreter.lua
parent2610586346bdb3cc91b554f8ba2da2e06351aa46 (diff)
fix interpreter bug
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index d2052cf00..458d71b30 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -530,7 +530,7 @@ function interpreter:_make(scope_kind, remove_repeat, enable_filter)
-- get the root results of the given scope kind, e.g. root.target
local results = {}
- if scope_kind:startswith("root.") then
+ if scope_kind and scope_kind:startswith("root.") then
local root_scope = scopes._ROOT[scope_kind:sub(6)]
if root_scope then