summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-12-15 00:41:39 +0800
committerruki <[email protected]>2018-12-14 22:09:54 +0800
commit95f46b973794b37ccd62edbcc3bfb010b0f23dcc (patch)
treeabbd878e0e78c0511c7da072ad43b70f03eeea47 /xmake/core/project/project.lua
parent107f81a48da61d37ecbffac4e2f816b9cfedb21c (diff)
improve interpreter
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index 5c9eeb9dc..9dcc39426 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -357,8 +357,14 @@ function project._load_scope(scope_kind, remove_repeat, enable_filter)
return nil, errors
end
+ -- load script
+ local ok, errors = interp:load(project.file())
+ if not ok then
+ return nil, errors
+ end
+
-- load targets
- local results, errors = interp:load(project.file(), scope_kind, remove_repeat, enable_filter)
+ local results, errors = interp:make(scope_kind, remove_repeat, enable_filter)
if not results then
return nil, (errors or "load project file failed!")
end