diff options
| author | ruki <[email protected]> | 2021-07-17 20:42:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-07-17 20:42:55 +0800 |
| commit | 1e66523be22aade68083ac9be35d6187844041b5 (patch) | |
| tree | 48c073960caff708c408961256d13e61672827f6 | |
| parent | 7826f8f5a75df19734b2db907240a5cac35469da (diff) | |
add comment
| -rw-r--r-- | xmake/modules/private/action/require/impl/package.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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 -- |
