Skip to content

🐛Header-Only Templates Include Empty Binary #373

@SizzinSeal

Description

@SizzinSeal

Expected Behavior:

In a header-only template, the libname.a file should not be generated when compiling

Actual Behavior:

In a header-only template, a libname.a file is generated and included in the template zip. This may sometimes, but not always, cause projects which have the template installed to not compile, as it does not recognize the file and attempts to handle it as a linker script.

Steps to reproduce:

  1. Create an empty PROS project
  2. Set IS_LIBRARY to 1
  3. Set LIBNAME to headeronly
  4. Add headeronly.h to the include directory, and to TEMPLATE_FILES
  5. Run pros make; pros make template
  6. Run pros c fetch headeronly@1.0.0.zip
  7. Extract headeronly@1.0.0.zip
  8. Observe headeronly.a in firmware directory

System information:

Windows 11: Reproduced
Linux (Ubuntu, Arch): Reproduced
macOS: unknown

PROS Version: 3.5.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions