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/ar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/tools/ar.lua') diff --git a/xmake/tools/ar.lua b/xmake/tools/ar.lua index 4c82a7c5b..281055c40 100644 --- a/xmake/tools/ar.lua +++ b/xmake/tools/ar.lua @@ -119,7 +119,7 @@ function check(flags) local libraryfile = path.join(os.tmpdir(), "xmake.ar.a") local objectfile = path.join(os.tmpdir(), "xmake.ar.o") local sourcefile = path.join(os.tmpdir(), "xmake.ar.c") - io.write(sourcefile, "int test(void)\n{return 0;}") + io.writefile(sourcefile, "int test(void)\n{return 0;}") -- make flags local arflags = table.concat(_g.arflags, " ") -- cgit v1.3.1