AK: Add feature detection for -fblocks and -fobjc-arc

This commit is contained in:
Andrew Kaster 2025-03-16 17:07:53 -06:00 committed by Andrew Kaster
parent 1148116a87
commit 0c2f434e69
Notes: github-actions[bot] 2025-03-18 23:16:29 +00:00

View file

@ -265,6 +265,14 @@
# define LSAN_UNREGISTER_ROOT_REGION(base, size)
#endif
#if __has_feature(blocks)
# define AK_HAS_BLOCKS
#endif
#if __has_feature(objc_arc)
# define AK_HAS_OBJC_ARC
#endif
#ifndef AK_OS_SERENITY
# ifdef AK_OS_WINDOWS
// FIXME: No idea where to get this, but it's 4096 anyway :^)