forked from platformio/platformio-core
Fixed an issue when “strict” compatibility mode was not used for a library with custom “platforms” field in library.json manifest // Resolve #3806
This commit is contained in:
1 parent
4488f25ce0
commit
f9384ded27
2 files changed
+12
-8
No files matched your search
@@ -773,11 +773,14 @@ class PlatformIOLibBuilder(LibBuilderBase):
|
||||
|
||||
@property
|
||||
def lib_compat_mode(self):
|
||||
mode = self._manifest.get("build", {}).get(
|
||||
"libCompatMode",
|
||||
)
|
||||
if not mode and self._manifest.get("platforms"):
|
||||
mode = "strict"
|
||||
# pylint: disable=no-member
|
||||
return self.validate_compat_mode(
|
||||
self._manifest.get("build", {}).get(
|
||||
"libCompatMode", LibBuilderBase.lib_compat_mode.fget(self)
|
||||
)
|
||||
mode or LibBuilderBase.lib_compat_mode.fget(self)
|
||||
)
|
||||
|
||||
def is_platforms_compatible(self, platforms):
|
||||
|
||||
Reference in new issue
Block a user