diff options
| author | ruki <[email protected]> | 2023-05-13 20:48:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-05-13 20:48:01 +0800 |
| commit | 34eb729eb862e7415028c84970f3b2c830d95cd9 (patch) | |
| tree | 4ae8e0011793809447b619902f11c389dc40e9a1 /xmake/modules/private/action/require/impl/package.lua | |
| parent | 858d1e5ee847b71213b1c6605ae62c0196bf8fd9 (diff) | |
improve package strict_compatibility #2719
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
| -rw-r--r-- | xmake/modules/private/action/require/impl/package.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua index a954d4288..327ea2588 100644 --- a/xmake/modules/private/action/require/impl/package.lua +++ b/xmake/modules/private/action/require/impl/package.lua @@ -992,17 +992,15 @@ function _compatible_with_previous_librarydeps(package, opt) return true end - -- has been checked? - local compatible_checked = package:data("librarydeps.compatible_checked") - if compatible_checked then - return - end - -- check strict compatibility for librarydeps? local strict_compatibility = project.policy("package.librarydeps.strict_compatibility") if strict_compatibility == nil then strict_compatibility = package:policy("package.librarydeps.strict_compatibility") end + -- and we can disable it manually, @see https://github.com/xmake-io/xmake/pull/3738 + if strict_compatibility == false then + return true + end -- compute the buildhash for current librarydeps local depnames = hashset.new() |
