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:
- Create an empty PROS project
- Set
IS_LIBRARY to 1
- Set
LIBNAME to headeronly
- Add
headeronly.h to the include directory, and to TEMPLATE_FILES
- Run
pros make; pros make template
- Run
pros c fetch headeronly@1.0.0.zip
- Extract
headeronly@1.0.0.zip
- Observe
headeronly.a in firmware directory
System information:
Windows 11: Reproduced
Linux (Ubuntu, Arch): Reproduced
macOS: unknown
PROS Version: 3.5.4
Expected Behavior:
In a header-only template, the
libname.afile should not be generated when compilingActual Behavior:
In a header-only template, a
libname.afile 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:
IS_LIBRARYto1LIBNAMEtoheaderonlyheaderonly.hto theincludedirectory, and toTEMPLATE_FILESpros make; pros make templatepros c fetch headeronly@1.0.0.zipheaderonly@1.0.0.zipheaderonly.ainfirmwaredirectorySystem information:
Windows 11: Reproduced
Linux (Ubuntu, Arch): Reproduced
macOS: unknown
PROS Version: 3.5.4