If Building For Darling, Use Cache Lock If __OBJC2__ Is Not Defined

This commit is contained in:
Thomas A 2022-04-09 12:58:25 -07:00
parent 298788671d
commit a2478cf54b

View File

@ -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.