From 71d627e4aa9b5780e63fc6b679c74548844c5feb Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 27 Mar 2017 17:57:41 +0800 Subject: fix io.read and io.write raw lua api --- xmake/tools/dmd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/tools/dmd.lua') diff --git a/xmake/tools/dmd.lua b/xmake/tools/dmd.lua index 844c94e92..10fb28342 100644 --- a/xmake/tools/dmd.lua +++ b/xmake/tools/dmd.lua @@ -201,7 +201,7 @@ function check(flags) local sourcefile = os.tmpfile() .. ".d" -- make stub code - io.write(sourcefile, "void main() {\n}") + io.writefile(sourcefile, "void main() {\n}") -- check it os.run("%s -c %s -of%s %s", _g.shellname, ifelse(flags, flags, ""), objectfile, sourcefile) -- cgit v1.3.1