Files
ladybird/Libraries/LibTest
Johan Dahlin 29355a0e33 LibTest: Prevent -dead_strip from removing assertion handler
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>
2026-03-19 18:36:27 +01:00
..
2025-05-16 13:23:32 -06:00