diff options
| author | ruki <[email protected]> | 2023-10-10 22:47:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-10 22:47:17 +0800 |
| commit | e319b5ec950686345a366939b2e92f799f41a283 (patch) | |
| tree | 551c315e93a7a35fd8912155a087928b9ff077ca | |
| parent | 58ae89cea6676f7a659d91662926da84ad6cacd4 (diff) | |
revert find_library
| -rw-r--r-- | xmake/core/sandbox/modules/import/lib/detect/find_library.lua | 2 |
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 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) |
