Skip to content

libArchive option is being ignored in 6.1.1 #4351

@crespum

Description

@crespum

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.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

  1. Clone https://github.com/crespum/arduino-blink-core-bug
  2. Build with Core 6.1.0 and save the output
  3. Build with Core 6.1.1 and save the output
  4. Compare both outputs and see an unexpected libtest_lib.a in 6.1.1 (this is the linker output taken in my setup)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions