summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/detect/tools')
-rw-r--r--xmake/modules/detect/tools/find_brew.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_brew.lua b/xmake/modules/detect/tools/find_brew.lua
index 1378e8b16..d2808fc7d 100644
--- a/xmake/modules/detect/tools/find_brew.lua
+++ b/xmake/modules/detect/tools/find_brew.lua
@@ -43,6 +43,10 @@ function main(opt)
-- init options
opt = opt or {}
+
+ -- we do not attempt to run brew and only find the brew program path
+ -- because the `brew --version` and `brew help` commands are too slow. (~1.5s)
+ opt.norun = true
-- find program
local program = find_program(opt.program or "brew", opt)