-
Notifications
You must be signed in to change notification settings - Fork 611
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
Why is hb-warning a compilation unit? #2005
Comments
Interesting, and worth to fix, however feel free also to just use harfbuzz.cc, single file, whole harfbuzz, for now :) |
It was made into a compilation unit so the warnings are emitted just once. So we have completely become slaves to compilers now.... What's wrong with a compilation unit having everything compiled out, perhaps because of preprocessor symbols? |
in hb-warning.cc aren't they preprocessor errors and would make build systems assume compilation failed, and therefore fail a build? When you say "emitted just once", you mean in the case of parallel compilation, the compiler wont spit out the same errors multiple times. |
Could the preprocessor checks instead be at top of some main .cc file? or if it was in some main header, it could set a processor flag (similar to header sentinals) so it only gets reported once? |
Can these preprocessor checks just be added to the bottom of hb.hh?
It produces a lnk4221 warning on windows builds:
https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-warning-lnk4221?view=vs-2019
The text was updated successfully, but these errors were encountered: