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/lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/tools/lib.lua') diff --git a/xmake/tools/lib.lua b/xmake/tools/lib.lua index 62787b405..7b0a851e8 100644 --- a/xmake/tools/lib.lua +++ b/xmake/tools/lib.lua @@ -80,7 +80,7 @@ function check(flags) local libfile = os.tmpfile() .. ".lib" local objfile = os.tmpfile() .. ".obj" local srcfile = os.tmpfile() .. ".c" - io.write(srcfile, "int test(void)\n{return 0;}") + io.writefile(srcfile, "int test(void)\n{return 0;}") -- check it os.run("cl -c -Fo%s %s", objfile, srcfile) -- cgit v1.3.1