summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-10 22:42:13 +0800
committerruki <[email protected]>2023-10-10 22:42:13 +0800
commit58ae89cea6676f7a659d91662926da84ad6cacd4 (patch)
treee66e6ca392430a9054f540d51b175491536733d9
parent7a7b1aa4b45d455b9594f7768ff4092fbd0cc2f0 (diff)
improve to find_library
-rw-r--r--xmake/core/sandbox/modules/import/lib/detect/find_library.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/import/lib/detect/find_library.lua b/xmake/core/sandbox/modules/import/lib/detect/find_library.lua
index 4fb2618d3..9b6fffcc8 100644
--- a/xmake/core/sandbox/modules/import/lib/detect/find_library.lua
+++ b/xmake/core/sandbox/modules/import/lib/detect/find_library.lua
@@ -60,7 +60,7 @@ function sandbox_lib_detect_find_library.main(names, paths, opt)
for _, name in ipairs(table.wrap(names)) do
for _, kind in ipairs(table.wrap(kinds)) do
local filepath = find_file(target.filename(name, kind, {plat = opt.plat}), paths, opt)
- if opt.plat == "mingw" then
+ if opt.plat == "mingw" or opt.plat == "msys" or opt.plat == "cygwin" then
if not filepath and kind == "shared" then
-- for implib/mingw, e.g. libxxx.dll.a
filepath = find_file(target.filename(name, kind, {plat = opt.plat}) .. ".a", paths, opt)