What kind of issue is this?
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: Linux (Fedora 35)
PlatformIO Version (platformio --version): 6.1.1
Description of problem
We've got a big project with many libraries under lib directory. Each of these libraries contains a "libArchive": false, option inside its corresponding library.json. Up to version 6.1.0, this used to work as documented: the library was not compiled into a .a but every source file was compiled into an object to be linked in the last build step.
Since version 6.1.1 this option seems to be ignored and the libraries are compiled to intermediate .a files. I suspect it has to do with this commit.
Steps to Reproduce
- Clone https://github.com/crespum/arduino-blink-core-bug
- Build with Core 6.1.0 and save the output
- Build with Core 6.1.1 and save the output
- Compare both outputs and see an unexpected
libtest_lib.a in 6.1.1 (this is the linker output taken in my setup)
What kind of issue is this?
Question.
This issue tracker is not the place for questions. If you want to ask how to do something,
or to understand why something isn't working the way you expect it to,
use Community Forums or Premium Support
PlatformIO IDE.
All issues related to PlatformIO IDE should be reported to appropriate repository:
PlatformIO IDE for Atom or
PlatformIO IDE for VSCode
Development Platform or Board.
All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms
should be reported to appropriate repository related to your hardware
https://github.com/topics/platformio-platform
Feature Request.
Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
PlatformIO Core.
If you’ve found a bug, please provide an information below.
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: Linux (Fedora 35)
PlatformIO Version (
platformio --version): 6.1.1Description of problem
We've got a big project with many libraries under
libdirectory. Each of these libraries contains a"libArchive": false,option inside its correspondinglibrary.json. Up to version 6.1.0, this used to work as documented: the library was not compiled into a.abut every source file was compiled into an object to be linked in the last build step.Since version 6.1.1 this option seems to be ignored and the libraries are compiled to intermediate
.afiles. I suspect it has to do with this commit.Steps to Reproduce
libtest_lib.ain 6.1.1 (this is the linker output taken in my setup)