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

Move version information from api.h #700

Open
AndrewLuGit opened this issue Sep 26, 2024 · 0 comments
Open

Move version information from api.h #700

AndrewLuGit opened this issue Sep 26, 2024 · 0 comments

Comments

@AndrewLuGit
Copy link

Problem:

Currently, building the kernel requires recompiling every file that includes kapi.h, because the version information (PROS_VERSION_MAJOR, PROS_VERSION_MINOR, PROS_VERSION_PATCH, PROS_VERSION_STRING) is updated in api.h whenever the kernel is built. However, the version information is only ever used in the serial daemon, so the vast majority of the recompilation is not actually necessary.

Proposal:

I propose moving the version information from api.h to a separate header file (maybe pros/version.h), so that all of the files that don't use the version information do not need to be recompiled every time the kernel is built.

@Rocky14683 Rocky14683 mentioned this issue Oct 25, 2024
2 tasks
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