diff options
| -rw-r--r-- | xmake/modules/private/action/require/impl/package.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua index e500fbe93..daa02f401 100644 --- a/xmake/modules/private/action/require/impl/package.lua +++ b/xmake/modules/private/action/require/impl/package.lua @@ -547,7 +547,7 @@ function _select_artifacts_for_msvc(package, artifacts_manifest) if vs_toolset and semver.is_valid(vs_toolset) then local vs_toolset_semver = semver.new(vs_toolset) local msvc_version = "vc" .. vs_toolset_semver:major() .. tostring(vs_toolset_semver:minor()):sub(1, 1) - if package:config("shared") then + if package:config("shared") or package:is_binary() then for key, artifacts_info in pairs(artifacts_manifest) do if key:startswith(package:plat() .. "-" .. package:arch() .. "-vc") and key:endswith("-" .. package:buildhash()) then return artifacts_info |
