summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-05-03 22:49:26 +0800
committerruki <[email protected]>2018-05-03 10:56:40 +0800
commit73a30725702515eb2810161e98754731699cb837 (patch)
tree5bdf4ca2eb5a466b2b0fe7cf1acfb98db2c3f253 /xmake/core/project/project.lua
parent05fd6590defe26be976490131a88ee7db41bb084 (diff)
impl tracewpp rule
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index cb1e52f65..ac56439f1 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -412,12 +412,9 @@ function project._load_targets()
-- do load with target rules
if ok then
for _, r in pairs(t:orderules()) do
- local on_load = r:script("load")
- if on_load then
- ok, errors = sandbox.load(on_load, t)
- if not ok then
- break
- end
+ ok, errors = r:do_load(t)
+ if not ok then
+ break
end
end
if not ok then