summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/project/option.lua9
1 files changed, 8 insertions, 1 deletions
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