From 34eb729eb862e7415028c84970f3b2c830d95cd9 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 13 May 2023 20:48:01 +0800 Subject: improve package strict_compatibility #2719 --- xmake/modules/private/action/require/impl/package.lua | 10 ++++------ 1 file 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() -- cgit v1.3.1