summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/sandbox/modules/import/lib/detect/find_program.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/import/lib/detect/find_program.lua b/xmake/core/sandbox/modules/import/lib/detect/find_program.lua
index dad9dbdd4..a4e3c2849 100644
--- a/xmake/core/sandbox/modules/import/lib/detect/find_program.lua
+++ b/xmake/core/sandbox/modules/import/lib/detect/find_program.lua
@@ -227,7 +227,7 @@ function sandbox_lib_detect_find_program._find(name, paths, opt)
if envpaths then
table.join2(syspaths, path.splitenv(envpaths))
end]]
- if os.host() ~= "windows" then
+ if os.host() ~= "windows" or os.is_subhost("msys", "cygwin") then
table.insert(syspaths, "/usr/local/bin")
table.insert(syspaths, "/usr/bin")
end