The target-specific flag 'UseSignedCharForObjCBool' is used to determine the type for the Objective-C BOOL type. We should set it to false by default so that new targets can avoid setting it to true.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Basic/Targets.cpp | ||
---|---|---|
4340–4341 ↗ | (On Diff #87818) | Rather than using an if statement, why not assign directly? UseSignedCharForObjCBool = !T.isWatchOS(); |
4772–4773 ↗ | (On Diff #87818) | Same here. |
Comment Actions
Only make the change for the Darwin platforms to avoid ObjC ABI breakage for non-Darwin platforms.
Do you need to specify this? Isn't it handled by the TargetInfo constructor?