From 42b7123ea28553b2af3aed1047ff2aa4a6c62fb0 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 17 Jul 2021 00:43:18 +0800 Subject: improve package --- xmake/modules/private/action/require/impl/package.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1