diff --git a/HISTORY.rst b/HISTORY.rst index b60e44ff..79e86f67 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -13,8 +13,8 @@ PlatformIO 4.0 * `PlatformIO Plus Goes Open Source `__ - - Open source `PIO Unified Debugger `__ - - Open source `PIO Unit Testing `__ + - Open source `PIO Unified Debugger `__ + - Open source `PIO Unit Testing `__ * **Project Configuration** @@ -37,6 +37,7 @@ PlatformIO 4.0 - Look firstly in built-in library storages for a missing dependency instead of PlatformIO Registry (`issue #1654 `_) - Override default source and include directories for a library via `library.json `__ manifest using ``includeDir`` and ``srcDir`` fields - Fixed an issue when library keeps reinstalling for non-latin path (`issue #1252 `_) + - Fixed an issue when `lib_compat_mode = strict `__ does not ignore libraries incompatible with a project framework * **Build System** diff --git a/platformio/builder/tools/piolib.py b/platformio/builder/tools/piolib.py index f9ab05f0..66f9db57 100644 --- a/platformio/builder/tools/piolib.py +++ b/platformio/builder/tools/piolib.py @@ -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)