summaryrefslogtreecommitdiff
path: root/xmake/tools/ml.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-27 17:57:41 +0800
committerruki <[email protected]>2017-03-27 17:58:56 +0800
commit71d627e4aa9b5780e63fc6b679c74548844c5feb (patch)
tree46d8e8c874d045ca1f4d492b6edf82f5d716ae54 /xmake/tools/ml.lua
parent235bb967883ab0686bab731c8e94a4a0bb7677ab (diff)
fix io.read and io.write raw lua api
Diffstat (limited to 'xmake/tools/ml.lua')
-rw-r--r--xmake/tools/ml.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/tools/ml.lua b/xmake/tools/ml.lua
index 874d0be78..d8ddaee29 100644
--- a/xmake/tools/ml.lua
+++ b/xmake/tools/ml.lua
@@ -152,7 +152,7 @@ function check(flags)
-- make an stub source file
local objectfile = os.tmpfile() .. ".obj"
local sourcefile = os.tmpfile() .. ".asm"
- io.write(sourcefile, "end")
+ io.writefile(sourcefile, "end")
-- check it
os.run("%s -c %s -Fo%s %s", _g.shellname, ifelse(flags, flags, ""), objectfile, sourcefile)