diff options
| author | ruki <[email protected]> | 2016-03-02 21:06:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-03-02 21:06:09 +0800 |
| commit | 4fa3ca927a032f57aaae44156ceeec6732c159f6 (patch) | |
| tree | 1091a3ad18f67ac43262899fa49ea529c67beeff /xmake/core/base/task.lua | |
| parent | 8ee46b185347f31fa6f4380c887974cdbafbb1d1 (diff) | |
add option and global module for sandbox
Diffstat (limited to 'xmake/core/base/task.lua')
| -rw-r--r-- | xmake/core/base/task.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua index cda0c3356..d58844862 100644 --- a/xmake/core/base/task.lua +++ b/xmake/core/base/task.lua @@ -80,7 +80,8 @@ function task._interpreter() -- init maps local maps = { - host = xmake._HOST + host = xmake._HOST + , globaldir = global.directory() } -- map it @@ -273,6 +274,14 @@ function task.run(name) return false end + -- load global + if not global.load() then + + -- trace + utils.error("load global configure failed!") + return false + end + -- run on_before, on_run, on_after local ok = true local on_scripts = {taskinfo.before, taskinfo.run, taskinfo.after} |
