Compile out objc_msgSend_stret on 64 bit machines
Summary: objc_msgSend_stret isn't available when building for 64 bit devices so this line breaks. objc_msgSend is the correct function to call in 64 bit, but Flipper doesn't run for devices so its fine either way. Reviewed By: jasonhotsauce Differential Revision: D16502377 fbshipit-source-id: cfc20880bcccd086dc34fad74a6eef2c9a17cb17
This commit is contained in:
committed by
Facebook Github Bot
parent
594565de31
commit
aa470a9aef
@@ -245,7 +245,11 @@ static CK::StaticMutex _mutex = CK_MUTEX_INITIALIZER;
|
|||||||
- (std::vector<CKComponent *>)sonar_renderChildren:(id)state {
|
- (std::vector<CKComponent *>)sonar_renderChildren:(id)state {
|
||||||
[self setMutableDataFromStorage];
|
[self setMutableDataFromStorage];
|
||||||
SEL resultSelector = NSSelectorFromString([[self class] swizzledMethodNameForRender]);
|
SEL resultSelector = NSSelectorFromString([[self class] swizzledMethodNameForRender]);
|
||||||
|
#if defined(__aarch64__)
|
||||||
|
return ((std::vector<CKComponent *>(*)(CKComponent *, SEL, id))objc_msgSend)(self, resultSelector, state);
|
||||||
|
#else
|
||||||
return ((std::vector<CKComponent *>(*)(CKComponent *, SEL, id))objc_msgSend_stret)(self, resultSelector, state);
|
return ((std::vector<CKComponent *>(*)(CKComponent *, SEL, id))objc_msgSend_stret)(self, resultSelector, state);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSDictionary<NSString *, SKNodeDataChanged> *)sonar_getDataMutationsChanged {
|
- (NSDictionary<NSString *, SKNodeDataChanged> *)sonar_getDataMutationsChanged {
|
||||||
|
|||||||
Reference in New Issue
Block a user