-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Enable arc for chip-device-ctrl #6992
Conversation
ARC did find some issues with the Darwin build. Can you push a fix for those build error? |
516234e
to
cf2247e
Compare
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.
Per the updated template, can you update the PR here?
#### Problem
What is being fixed? Examples:
* Fix crash on startup
* Fixes #12345 12345 Frobnozzle is leaky (exactly like that, so GitHub will auto-close the issue).
#### Change overview
What's in this PR
#### Testing
How was this tested? (at least one bullet point required)
• If unit tests were added, how do they cover this issue?
• If unit tests existed, how were they fixed/modified to prevent this in future?
• If integration tests were added, how do they verify this change?
• If manually tested, what platforms controller and device platforms were manually tested, and how?
• If no testing is required, why not?
cf2247e
to
2dcc1b5
Compare
2dcc1b5
to
325c18d
Compare
@woody-apple summary was updated according to the template |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Problem
ARC
is not enabled forsrc/platform/Darwin
which results into leaks.Change overview
-fobjc-arc
insrc/platform/BUILD.gn
whenchip_device_layer
is set todarwin
.-fobjc-arc
insrc/platform/python/BUILD.gn
since it contains custom Objc++ files.src/platform/Darwin/*.mm
files that needs it.src/platform/python/chip/darwin/*.mm
files.Testing
This is not especially easy to write tests for ARC. So I did manual testing involving pairing over BLE in order to validate the underlying BLE stack using
chip-tool
on Mac andiOS ChipTool
.