diff options
Diffstat (limited to 'xmake/core/tool/linker.lua')
| -rw-r--r-- | xmake/core/tool/linker.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua index cca0d8275..5d01bd3cd 100644 --- a/xmake/core/tool/linker.lua +++ b/xmake/core/tool/linker.lua @@ -29,6 +29,7 @@ local path = require("base/path") local utils = require("base/utils") local table = require("base/table") local string = require("base/string") +local option = require("base/option") local config = require("project/config") local sandbox = require("sandbox/sandbox") local platform = require("platform/platform") @@ -391,9 +392,11 @@ function linker:check(flags) local ok, errors = sandbox.load(ltool.check, flags) -- trace - utils.verbose("checking for the flags %s ... %s", flags, utils.ifelse(ok, "ok", "no")) - if not ok then - utils.verbose(errors) + if option.get("verbose") then + utils.cprint("checking for the flags %s ... %s", flags, utils.ifelse(ok, "${green}ok", "${red}no")) + if not ok then + utils.cprint("${red}" .. errors or "") + end end -- save the checked result |
