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/go.lua | |
| parent | 235bb967883ab0686bab731c8e94a4a0bb7677ab (diff) | |
fix io.read and io.write raw lua api
Diffstat (limited to 'xmake/tools/go.lua')
| -rw-r--r-- | xmake/tools/go.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/tools/go.lua b/xmake/tools/go.lua index 0d9bd00f4..3e7afe80d 100644 --- a/xmake/tools/go.lua +++ b/xmake/tools/go.lua @@ -164,7 +164,7 @@ function check(flags) local sourcefile = os.tmpfile() .. ".go" -- make stub code - io.write(sourcefile, "package main\nfunc main() {\n}") + io.writefile(sourcefile, "package main\nfunc main() {\n}") -- check it os.run("%s tool compile %s -o %s %s", _g.shellname, ifelse(flags, flags, ""), objectfile, sourcefile) |
