mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
The ak_assertion_handler symbol is referenced only through a weak symbol in AK/Assertions.cpp. With -dead_strip on macOS, the linker strips the strong definition, breaking EXPECT_DEATH tests which rely on the handler to longjmp back instead of crashing. Add retain and used attributes to prevent the linker from removing it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>