summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-17 21:30:07 +0800
committerOpportunityLiu <[email protected]>2019-07-19 11:48:32 +0800
commit33729fbb22f06ec784cbabf9fe06847a6077e86c (patch)
treeb864efbfde9e7e53adbbec3130e0d1c72062ddc8
parent4ba16a3ce3b556686455378e1f7386508e65d0fb (diff)
fix runv
-rw-r--r--xmake/core/base/os.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 53670360f..617b0ee52 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -541,7 +541,7 @@ function os.runv(program, argv, opt)
if ok ~= 0 then
-- make errors
- local errors = io.readfile(log)
+ local errors = io.readfile(logfile)
if not errors or #errors == 0 then
if argv ~= nil then
errors = string.format("runv(%s %s) failed(%d)!", program, table.concat(argv, ' '), ok)