summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2026-04-10 14:43:27 +0800
committerGitHub <[email protected]>2026-04-10 14:43:27 +0800
commit9f87b9f5f5ddd52a1f1198904a3b8c4dbb4576a0 (patch)
tree08781b2e63c7c9223f503518e3b449b3ec010b9b
parent7be3d4a277469881ea7c2403e28885c7f8605c5f (diff)
feat: 支持 XMAKE_STATS=n
-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 4672f4d82..e779c28cc 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" then
+ if stats == "false" or stats == 'n' then
return false
end