Skip to content

LLVM libc used its own definition of LIBC_ASSERT in libc++ #162392

@ldionne

Description

@ldionne

Since hand-in-hand, libc++ uses llvm-libc to implement std::from_chars. That's done via a "shared" layer where llvm-libc provides functions that intent to be pretty self-contained.

However, this layer includes libc/src/__support/libc_assert.h, which provides its own definition of LIBC_ASSERT based on assert. In libc++, we have our own assertion macro and we would like to use that instead of libc's own definition. Hence, LIBC_ASSERT would have to be lifted to something that can be customized by libc++ (and perhaps users generally speaking, IDK).

Does that seem fine? Do you have any preference about how to achieve that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions