summaryrefslogtreecommitdiff
path: root/xmake/actions/global/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-11-24 23:44:04 +0800
committerruki <[email protected]>2022-11-24 23:44:04 +0800
commita6e149fc533f1ffb7cd7b4bd663caa7bb6b0be35 (patch)
tree415e6a265dbb07b9655cf0cc684fd00ad75e8f49 /xmake/actions/global/main.lua
parent2d968d48f29a697ef1d8e991e7e0c29d92e33c06 (diff)
add xmake g --check
Diffstat (limited to 'xmake/actions/global/main.lua')
-rw-r--r--xmake/actions/global/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/global/main.lua b/xmake/actions/global/main.lua
index 785237e32..465c4948e 100644
--- a/xmake/actions/global/main.lua
+++ b/xmake/actions/global/main.lua
@@ -70,7 +70,7 @@ function main()
global.save()
-- clear detect cache
- if option.get("clean") then
+ if option.get("clean") or option.get("check") then
global_detectcache:clear()
global_detectcache:save()
end