diff options
| author | ruki <[email protected]> | 2015-06-03 17:32:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-03 17:32:55 +0800 |
| commit | 81970742272dc8b6f406f91f216374777786d256 (patch) | |
| tree | 86a3983dc24558015b7d7356ecd1ddb905355078 /xmake/scripts/action/_build.lua | |
| parent | fc3638d5128d6f652d79df8985ca5efcb104d22f (diff) | |
redirect building output
Diffstat (limited to 'xmake/scripts/action/_build.lua')
| -rw-r--r-- | xmake/scripts/action/_build.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/scripts/action/_build.lua b/xmake/scripts/action/_build.lua index 1a821e406..d07005eab 100644 --- a/xmake/scripts/action/_build.lua +++ b/xmake/scripts/action/_build.lua @@ -24,6 +24,7 @@ local _build = _build or {} -- load modules +local rule = require("base/rule") local utils = require("base/utils") local clean = require("base/clean") local config = require("base/config") @@ -46,7 +47,9 @@ function _build.done() -- build target for makefile if not makefile.build(target_name) then -- error - utils.error("build target: %s failed!", target_name) + print("") + io.cat(rule.logfile()) + utils.error("build target: %s failed!\n", target_name) return false end |
