summaryrefslogtreecommitdiff
path: root/xmake/tools/ar.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/ar.lua
parent235bb967883ab0686bab731c8e94a4a0bb7677ab (diff)
fix io.read and io.write raw lua api
Diffstat (limited to 'xmake/tools/ar.lua')
-rw-r--r--xmake/tools/ar.lua2
1 files changed, 1 insertions, 1 deletions
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, " ")