summaryrefslogtreecommitdiff
path: root/xmake/tools/rustc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-10 09:55:42 +0800
committerruki <[email protected]>2017-03-10 09:55:42 +0800
commitf99ff317a4b67d7508b40842f83aaea74ab7e20e (patch)
treecec35f7c9938f78ad06731a41300e097b6d4b894 /xmake/tools/rustc.lua
parent952b7eb1d18223a664c0c9b20094201cad9a53c8 (diff)
fix compile error for rust android
Diffstat (limited to 'xmake/tools/rustc.lua')
-rwxr-xr-xxmake/tools/rustc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/tools/rustc.lua b/xmake/tools/rustc.lua
index 5d008d7a3..6456e7a3a 100755
--- a/xmake/tools/rustc.lua
+++ b/xmake/tools/rustc.lua
@@ -114,13 +114,13 @@ function buildcmd(sourcefiles, targetkind, targetfile, flags)
end
-- build the target file
-function build(objectfiles, targetkind, targetfile, flags)
+function build(sourcefiles, targetkind, targetfile, flags)
-- ensure the target directory
os.mkdir(path.directory(targetfile))
-- build it
- os.run(buildcmd(objectfiles, targetkind, targetfile, flags))
+ os.run(buildcmd(sourcefiles, targetkind, targetfile, flags))
end
-- make the complie command