From 1e66523be22aade68083ac9be35d6187844041b5 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 17 Jul 2021 20:42:55 +0800 Subject: add comment --- xmake/modules/private/action/require/impl/package.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua index ca10800f9..516b0be89 100644 --- a/xmake/modules/private/action/require/impl/package.lua +++ b/xmake/modules/private/action/require/impl/package.lua @@ -560,8 +560,10 @@ function _select_artifacts_for_msvc(package, artifacts_manifest) end end) if package:config("shared") or package:is_binary() then + -- executable programs and dynamic libraries only need to select the latest toolset return artifacts_infos[1] else + -- static libraries need to consider toolset compatibility for _, artifacts_info in ipairs(artifacts_infos) do -- toolset is backwards compatible -- -- cgit v1.3.1