Skip to content

Commit a59d821

Browse files
author
Davide Italiano
committed
[Metadata] Define _objc_empty_cache under SWIF_OBJC_INTEROP.
Later code uses the variable under this macro, so defining it under NDEBUG breaks debug builds of stdlib.
1 parent 99b6b53 commit a59d821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/Metadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static GenericMetadataCache &unsafeGetInitializedCache(
226226
return lazyCache->unsafeGetAlreadyInitialized();
227227
}
228228

229-
#ifndef NDEBUG
229+
#if SWIFT_OBJC_INTEROP
230230
extern "C" void *_objc_empty_cache;
231231
#endif
232232

0 commit comments

Comments
 (0)