mirror of
https://github.com/darlinghq/darling-objc4.git
synced 2024-11-26 21:50:26 +00:00
If Building For Darling, Use Cache Lock If __OBJC2__ Is Not Defined
This commit is contained in:
parent
298788671d
commit
a2478cf54b
@ -181,7 +181,15 @@
|
||||
//
|
||||
// If the runtime lock ever becomes a rwlock again,
|
||||
// the cache lock would need to be used again
|
||||
#ifndef DARLING
|
||||
#define CONFIG_USE_CACHE_LOCK 0
|
||||
#else
|
||||
#if __OBJC2__
|
||||
#define CONFIG_USE_CACHE_LOCK 0
|
||||
#else
|
||||
#define CONFIG_USE_CACHE_LOCK 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Determine how the method cache stores IMPs.
|
||||
#define CACHE_IMP_ENCODING_NONE 1 // Method cache contains raw IMP.
|
||||
|
Loading…
Reference in New Issue
Block a user