forked from platformio/platformio-core
Project's "lib_compat_mode" has higher priority than "library.json"
This commit is contained in:
@ -773,6 +773,11 @@ class PlatformIOLibBuilder(LibBuilderBase):
|
||||
|
||||
@property
|
||||
def lib_compat_mode(self):
|
||||
missing = object()
|
||||
mode = self.env.GetProjectConfig().getraw(
|
||||
"env:" + self.env["PIOENV"], "lib_compat_mode", missing
|
||||
)
|
||||
if mode == missing:
|
||||
mode = self._manifest.get("build", {}).get(
|
||||
"libCompatMode",
|
||||
)
|
||||
|
Reference in New Issue
Block a user