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