summaryrefslogtreecommitdiff
path: root/xmake/core/action/run.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-01-28 20:33:54 +0800
committerruki <[email protected]>2016-02-15 19:10:26 +0800
commit80a87ab432cbe72ab772f02d13daa75bc1010085 (patch)
treeedece4e5a3066589401b2c6ebf0f5e32e0ec45f7 /xmake/core/action/run.lua
parent780a88f1b2e7cb90be32cd20216bd94460824c20 (diff)
register some builtin api for sandbox
Diffstat (limited to 'xmake/core/action/run.lua')
-rw-r--r--xmake/core/action/run.lua16
1 files changed, 1 insertions, 15 deletions
diff --git a/xmake/core/action/run.lua b/xmake/core/action/run.lua
index 3f10d4866..247170d45 100644
--- a/xmake/core/action/run.lua
+++ b/xmake/core/action/run.lua
@@ -82,22 +82,8 @@ function action_run.done()
targetfile = path.absolute(targetfile, xmake._PROJECT_DIR)
end
- -- load the run script
- local runscript = target.runscript
- if type(runscript) == "string" and os.isfile(runscript) then
- local script, errors = loadfile(runscript)
- if script then
- runscript = script()
- if type(runscript) == "table" and runscript.main then
- runscript = runscript.main
- end
- else
- utils.error(errors)
- return false
- end
- end
-
-- run script
+ local runscript = target.runscript
if runscript ~= nil then
if type(runscript) == "function" then