diff options
Diffstat (limited to 'xmake/tools/cl.lua')
| -rw-r--r-- | xmake/tools/cl.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/tools/cl.lua b/xmake/tools/cl.lua index f67f072ab..68881995e 100644 --- a/xmake/tools/cl.lua +++ b/xmake/tools/cl.lua @@ -322,7 +322,7 @@ function check(flags) -- make an stub source file local objectfile = os.tmpfile() .. ".obj" local sourcefile = os.tmpfile() .. ".c" - io.write(sourcefile, "int main(int argc, char** argv)\n{return 0;}") + io.writefile(sourcefile, "int main(int argc, char** argv)\n{return 0;}") -- check it os.run("%s -c %s -Fo%s %s", _g.shellname, ifelse(flags, flags, ""), objectfile, sourcefile) |
