Fix an issue when lib_compat_mode = strict does not ignore libraries incompatible with a project framework

This commit is contained in:
Ivan Kravets
2019-07-04 16:46:54 +03:00
parent c3ac10fe29
commit affa54e5fc
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -943,7 +943,7 @@ def IsCompatibleLibBuilder(env,
if verbose:
sys.stderr.write("Platform incompatible library %s\n" % lb.path)
return False
if (compat_mode == "soft" and "PIOFRAMEWORK" in env
if (compat_mode in ("soft", "strict") and "PIOFRAMEWORK" in env
and not lb.is_frameworks_compatible(env.get("PIOFRAMEWORK", []))):
if verbose:
sys.stderr.write("Framework incompatible library %s\n" % lb.path)