summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2018-09-21 00:34:59 +0800
committerruki <[email protected]>2018-09-20 21:29:59 +0800
commit034267c2787a77143bff2df14ea6ebc06f8f1817 (patch)
tree30f62c76a689ae888b70eb8b7997d5b972117bcc /xmake/modules
parent0e997da1878a00b34bda5db168c381d62695d107 (diff)
optimize to find brew
Diffstat (limited to 'xmake/modules')
-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)