diff options
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/package/tools/xmake.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua index 814b98279..338c3e761 100644 --- a/xmake/modules/package/tools/xmake.lua +++ b/xmake/modules/package/tools/xmake.lua @@ -393,6 +393,13 @@ end -- get package depconfs envs -- @see https://github.com/xmake-io/xmake/issues/3952 function _get_package_depconfs_envs(envs, package, opt) + local policy = package:policy("package.xmake.pass_depconfs") + if policy == nil then + policy = project.policy("package.xmake.pass_depconfs") + end + if policy == false then + return + end local requireconfs = {} for _, dep in ipairs(package:librarydeps()) do local requireinfo = dep:requireinfo() |
