diff options
| author | ruki <[email protected]> | 2022-05-25 22:26:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-25 22:26:51 +0800 |
| commit | 1f82be4455b060718cd8ff5c67f97ccafe97ab61 (patch) | |
| tree | 97b50d043f0543b31e233e4ced5ba1e5ca05fd18 | |
| parent | 0620f67d7ded41baab862a4a5f46323971712429 (diff) | |
disable precompiled in project
| -rw-r--r-- | xmake/modules/private/action/require/impl/package.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua index 04557715c..689f9805c 100644 --- a/xmake/modules/private/action/require/impl/package.lua +++ b/xmake/modules/private/action/require/impl/package.lua @@ -675,10 +675,14 @@ end -- select to use precompiled artifacts? function _select_artifacts(package, artifacts_manifest) - -- the precompile policy is disabled? + -- the precompile policy is disabled in package? if package:policy("package.precompiled") == false then return end + -- the precompile policy is disabled in project? + if os.isfile(os.projectfile()) and project.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) |
