From e319b5ec950686345a366939b2e92f799f41a283 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 10 Oct 2023 22:47:17 +0800 Subject: revert find_library --- xmake/core/sandbox/modules/import/lib/detect/find_library.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9b6fffcc8..4fb2618d3 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" or opt.plat == "msys" or opt.plat == "cygwin" then + if opt.plat == "mingw" 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) -- cgit v1.3.1