summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/utils/statistics.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/utils/statistics.lua b/xmake/modules/private/utils/statistics.lua
index e779c28cc..990d9f7b7 100644
--- a/xmake/modules/private/utils/statistics.lua
+++ b/xmake/modules/private/utils/statistics.lua
@@ -32,7 +32,7 @@ function _is_enabled()
-- disable statistics? need not post it
local stats = (os.getenv("XMAKE_STATS") or ""):lower()
- if stats == "false" or stats == 'n' then
+ if option.boolean(stats) == false then
return false
end