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 threads.h to new newlib override folder searched before other includes #634

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

sp1187
Copy link
Contributor

@sp1187 sp1187 commented Oct 24, 2024

This PR primarily makes it easier to create software packages for libdragon that doesn't conflict with newlib packages, though it is also useful for documentation reasons (easy to see which files are meant to override newlib includes) and possibly useful for testing or reverting during libdragon development as well.

@@ -212,6 +211,8 @@ install: install-mk libdragon
install -Cv -m 0644 src/fatfs/ff.h $(INSTALLDIR)/mips64-elf/include/fatfs/ff.h
install -Cv -m 0644 src/fatfs/ffconf.h $(INSTALLDIR)/mips64-elf/include/fatfs/ffconf.h
install -Cv -m 0644 include/ioctl.h $(INSTALLDIR)/mips64-elf/include/ioctl.h
mkdir -p $(INSTALLDIR)/mips64-elf/include/newlib_overrides
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we name it to something like early_includes or is this only meant for newlib only?

Copy link
Contributor Author

@sp1187 sp1187 Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current file in the folder overrides newlib, so I thought the chosen name here was the most clearly documenting one (it describes its purpose rather than just what it does), and I also suspect it will be common use-case for future includes. If we think there is a need to override files from some other source (libstdc++? some GCC-provided includes?) in the future, I can rename the folder.

@rasky rasky merged commit 4cb25cd into DragonMinded:preview Oct 27, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

3 participants