summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-05 00:30:33 +0800
committerruki <[email protected]>2022-03-05 00:30:33 +0800
commit824bba3286c79e2969214924cdb78a59778cefcc (patch)
tree95bda58fe6623731982563214482609de3648ce8 /xmake/modules/private/action/require/impl/package.lua
parent5b4fb54904dd927d0190a0a50affedbc81732640 (diff)
add precompile policy
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
-rw-r--r--xmake/modules/private/action/require/impl/package.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index dbeb13d9a..057b56a99 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -664,6 +664,10 @@ end
-- select to use precompiled artifacts?
function _select_artifacts(package, artifacts_manifest)
+ -- the precompile policy is disabled?
+ if package:policy("package.precompiled") == false then
+ return
+ end
local artifacts_info
if package:is_plat("windows") then -- for msvc
artifacts_info = _select_artifacts_for_msvc(package, artifacts_manifest)