Fix visibility attribute on Windows for export_properties function - #761
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe ChangesProperty export visibility
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This makes the property binding export portable for Windows while preserving the existing shared-library visibility intent. No current merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## ros2 #761 +/- ##
=======================================
Coverage 47.86% 47.86%
=======================================
Files 142 142
Lines 10446 10446
Branches 1149 1149
=======================================
Hits 4999 4999
Misses 5183 5183
Partials 264 264 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Found this while building version 0.2.0 for RoboStack on Windows.
If you look at the source code here: https://github.com/pybind/pybind11/blob/d87cf0b873e42f0e541a4be9b29ea4b2681148ed/include/pybind11/detail/common.h#L140-L146
You will notice that the
PYBIND11_EXPORTmacro keeps its current behavior on non-Windows system but also fixes on Windows.... granted, there are several other parts of the code that won't compile on Windows, but this particular patch seems like a less intrusive one than some of the others.
Summary by CodeRabbit