From cdf6f04361f0ff08562e62f22b3fec8367cfde2a Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 1 Aug 2021 11:02:25 +0800 Subject: improve to check option tips --- xmake/core/project/option.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xmake/core/project/option.lua b/xmake/core/project/option.lua index a92f8922f..93d25990f 100644 --- a/xmake/core/project/option.lua +++ b/xmake/core/project/option.lua @@ -175,7 +175,14 @@ function _instance:_check() end -- trace - utils.cprint("checking for %s ... %s", name, self:enabled() and "${color.success}${text.success}" or "${color.nothing}${text.nothing}") + local result + if self:enabled() then + local value = self:value() + result = "${color.success}" .. (type(value) == "boolean" and "${text.success}" or tostring(value)) + else + result = "${color.nothing}${text.nothing}" + end + utils.cprint("checking for %s ... %s", name, result) if not ok then os.raise(errors) end -- cgit v1.3.1