Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛Header-Only Templates Include Empty Binary #373

Open
SizzinSeal opened this issue Aug 15, 2024 · 0 comments
Open

🐛Header-Only Templates Include Empty Binary #373

SizzinSeal opened this issue Aug 15, 2024 · 0 comments

Comments

@SizzinSeal
Copy link
Contributor

SizzinSeal commented Aug 15, 2024

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 [email protected]
  7. Extract [email protected]
  8. Observe headeronly.a in firmware directory

System information:

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

PROS Version: 3.5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant