diff --git a/CMakeLists.txt b/CMakeLists.txt index b5a9ac0..85eff0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -141,6 +141,13 @@ set(OLDABI_COMPAT ${OLD_ABI_COMPAT_DEFAULT} CACHE BOOL set(LEGACY_COMPAT FALSE CACHE BOOL "Enable legacy compatibility features") +set(DEBUG_ARC_COMPAT FALSE CACHE BOOL + "Log warnings for classes that don't hit ARC fast paths") + +if (DEBUG_ARC_COMPAT) + add_definitions(-DDEBUG_ARC_COMPAT) +endif() + if (OLDABI_COMPAT) list(APPEND libobjc_C_SRCS legacy.c abi_version.c statics_loader.c) add_definitions(-DOLDABI_COMPAT=1) diff --git a/dtable.c b/dtable.c index aa6eb96..cd09f35 100644 --- a/dtable.c +++ b/dtable.c @@ -77,7 +77,6 @@ static BOOL ownsMethod(Class cls, SEL sel) } -#define DEBUG_ARC_COMPAT #ifdef DEBUG_ARC_COMPAT #define ARC_DEBUG_LOG(...) fprintf(stderr, __VA_ARGS__) #else