diff options
Diffstat (limited to 'xmake/tools/make.lua')
| -rw-r--r-- | xmake/tools/make.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/tools/make.lua b/xmake/tools/make.lua index a95685478..0fe4a727a 100644 --- a/xmake/tools/make.lua +++ b/xmake/tools/make.lua @@ -56,7 +56,7 @@ function run(makefile, target, jobs) local verbose = ifelse(option.get("verbose"), "-v", "") -- run it - local ok = nil + local ok = -1 if makefile and os.isfile(makefile) then ok = os.execute("%s -r %s -f %s %s VERBOSE=%s", _g.shellname, jobs, makefile, target or "", verbose) else @@ -86,12 +86,12 @@ end function check(flags) -- make an empty makefile - local tmpfile = path.join(os.tmpdir(), "xmake.checker.make") - io.write(tmpfile, "all:\n") + local makefile = path.join(os.tmpdir(), "xmake.checker.make") + io.write(makefile, "all:\n") -- check it - os.run("%s %s -f %s", _g.shellname, ifelse(flags, flags, ""), tmpfile) + os.run("%s %s -f %s", _g.shellname, ifelse(flags, flags, ""), makefile) -- remove this makefile - os.rm(tmpfile) + os.rm(makefile) end |
