[libc-commits] [libc] [llvm] [libc] Decouple LIBC_ASSERT failure handling and raise SIGABRT in full-build mode (PR #239277)

Aman Maurya via libc-commits libc-commits at lists.llvm.org
Fri Nov 13 06:02:52 PST 2026


amanmaurya92 wrote:

Hi @labath @SchrodingerZhu,
 
All review feedback has been addressed and all 45 CI checks are now green:
 1. **Moved `internal::assert_fail` to `OSUtil`**: Placed in `src/__support/OSUtil/assert_fail.h` with OS/platform-specific implementations under `src/__support/OSUtil/<os>/assert_fail.cpp` (matching the architecture of `internal::exit`).
2. **Split `libc_assert` targets**: Cleanly separated internal assertion failure reporting from public entrypoints so internal targets don't pull in unrequested entry points.
3. **Updated death tests**: Updated `checked_ptr_test` and `unique_ptr_test` to expect `SIGABRT` across full-build and overlay modes.
4. **Rebased & squashed**: Rebased cleanly onto latest `main` and squashed into a single commit.
 
 Could you please take another look when you have a moment? Thank you!

https://github.com/llvm/llvm-project/pull/239277


More information about the libc-commits mailing list