summaryrefslogtreecommitdiff
path: root/xmake/platforms/iphoneos
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/platforms/iphoneos
parent235bb967883ab0686bab731c8e94a4a0bb7677ab (diff)
fix io.read and io.write raw lua api
Diffstat (limited to 'xmake/platforms/iphoneos')
-rw-r--r--xmake/platforms/iphoneos/check.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/platforms/iphoneos/check.lua b/xmake/platforms/iphoneos/check.lua
index 3292199d4..d247c4bf8 100644
--- a/xmake/platforms/iphoneos/check.lua
+++ b/xmake/platforms/iphoneos/check.lua
@@ -31,7 +31,7 @@ function _check_as(shellname)
-- make an empty tmp.S
local tmpfile = path.join(os.tmpdir(), "xmake.checker.as.S")
- io.write(tmpfile, "")
+ io.writefile(tmpfile, "")
-- check it
os.run("%s -arch armv7 -o %s -c %s", shellname, os.nuldev(), tmpfile)