diff options
| author | ruki <[email protected]> | 2017-03-27 17:57:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-03-27 17:58:56 +0800 |
| commit | 71d627e4aa9b5780e63fc6b679c74548844c5feb (patch) | |
| tree | 46d8e8c874d045ca1f4d492b6edf82f5d716ae54 /xmake/tools/link.lua | |
| parent | 235bb967883ab0686bab731c8e94a4a0bb7677ab (diff) | |
fix io.read and io.write raw lua api
Diffstat (limited to 'xmake/tools/link.lua')
| -rw-r--r-- | xmake/tools/link.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/tools/link.lua b/xmake/tools/link.lua index 7d4ae9f56..aa99377fb 100644 --- a/xmake/tools/link.lua +++ b/xmake/tools/link.lua @@ -147,9 +147,9 @@ function check(flags) -- main entry if flags and flags:lower():find("subsystem:windows") then - io.write(sourcefile, "int WinMain(void* instance, void* previnst, char** argv, int argc)\n{return 0;}") + io.writefile(sourcefile, "int WinMain(void* instance, void* previnst, char** argv, int argc)\n{return 0;}") else - io.write(sourcefile, "int main(int argc, char** argv)\n{return 0;}") + io.writefile(sourcefile, "int main(int argc, char** argv)\n{return 0;}") end -- check it |
