summaryrefslogtreecommitdiff
path: root/xmake/plugins/lua/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-15 10:22:35 +0800
committerruki <[email protected]>2017-02-15 10:22:35 +0800
commit73cd519a9a8130bae7f8c6101787168681e1dcd6 (patch)
treeffb4b9381af1c30e08e8ddbb94da7e4fb04bafe3 /xmake/plugins/lua/xmake.lua
parent7f135386a31972e4f4e486ae5854115b2e1af5a2 (diff)
rewrite objectfiles for target
Diffstat (limited to 'xmake/plugins/lua/xmake.lua')
-rwxr-xr-xxmake/plugins/lua/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/lua/xmake.lua b/xmake/plugins/lua/xmake.lua
index fb5384bd5..abc723b3b 100755
--- a/xmake/plugins/lua/xmake.lua
+++ b/xmake/plugins/lua/xmake.lua
@@ -52,9 +52,9 @@ task("lua")
-- import script
if os.isfile(name) then
- import(path.basename(name), {rootdir = path.directory(name)}).main(unpack(option.get("arguments")))
+ import(path.basename(name), {rootdir = path.directory(name)}).main(unpack(option.get("arguments") or {}))
else
- import("scripts." .. name).main(unpack(option.get("arguments")))
+ import("scripts." .. name).main(unpack(option.get("arguments") or {}))
end
end)