summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-07-17 00:43:18 +0800
committerruki <[email protected]>2021-07-17 00:43:18 +0800
commit42b7123ea28553b2af3aed1047ff2aa4a6c62fb0 (patch)
tree83a425d43614f7265caabf12753adabd41dbbb46
parentfc2cc5fd66bc31085a7346d8eb4800cebcdb4d01 (diff)
improve package
-rw-r--r--xmake/modules/private/action/require/impl/package.lua2
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