summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2026-04-10 17:15:36 +0800
committerGitHub <[email protected]>2026-04-10 17:15:36 +0800
commit023b573d3117f1381dce5c92a261a6d831fee996 (patch)
tree73223140ca28bb5c56643e71a1b2248233e274da
parent9f87b9f5f5ddd52a1f1198904a3b8c4dbb4576a0 (diff)
feat: 支持 XMAKE_STATS=n/no
-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