summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-07-17 00:57:42 +0800
committerruki <[email protected]>2021-07-17 00:57:42 +0800
commitacac0d80227ce3a2129c1fea2229227f3c193cae (patch)
treeb0d93a68e7b5c0a1937d305a613ca06c3581f7b6 /xmake/modules/private/action/require/impl/package.lua
parent57e7da648670b1358cd760b1eed30c1365d880ce (diff)
improve to detect msvc
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
-rw-r--r--xmake/modules/private/action/require/impl/package.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index a7a541d96..ed81e733e 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -576,8 +576,7 @@ end
-- select to use precompiled artifacts?
function _select_artifacts(package, artifacts_manifest)
local artifacts_info
- local _, toolname = package:tool("ld")
- if toolname == "link" then -- for msvc
+ if package:is_plat("windows") then -- for msvc
artifacts_info = _select_artifacts_for_msvc(package, artifacts_manifest)
else
artifacts_info = _select_artifacts_for_generic(package, artifacts_manifest)