-
Notifications
You must be signed in to change notification settings - Fork 100
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
Don't include the gz/math.hh header from library code #1043
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Using overly-broad include statements leads to slower builds and bloated object code. Signed-off-by: Jeremy Nimmer <[email protected]>
bebcb4f
to
cadbd0f
Compare
Codecov Report
@@ Coverage Diff @@
## main #1043 +/- ##
=======================================
Coverage 83.64% 83.64%
=======================================
Files 146 146
Lines 18255 18255
=======================================
Hits 15269 15269
Misses 2986 2986
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! We've just been talking internally this week about how we can prevent usage of these type of headers in our libraries.
Using overly-broad include statements leads to slower builds and bloated object code. Signed-off-by: Jeremy Nimmer <[email protected]>
Some libsdformat headers used to include `gz/math.hh`, but that is no longer the case since gazebosim/sdformat#1043. As a result, gz-sim has to be updated to include the necessary headers. Signed-off-by: Addisu Z. Taddese <[email protected]>
Some libsdformat headers used to include `gz/math.hh`, but that is no longer the case since gazebosim/sdformat#1043. As a result, gz-sim has to be updated to include the necessary headers. Signed-off-by: Addisu Z. Taddese <[email protected]>
🦟 Bug fix
Summary
Don't include the gz/math.hh header from library code. Using overly-broad include statements leads to slower builds and bloated object code. This commit swaps it out the
gz/math.hh
"everything" header for more targets files, instead.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.