Skip to content

LLVM 15 regression: LIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY does not work with system-libcxxabi #57759

@nikic

Description

@nikic

When doing a build with -DLIBCXX_CXX_ABI=system-libcxxabi -DLIBCXX_ENABLE_STATIC=ON -DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON the resulting libc++.a will not in fact have libc++abi.a linked in (without producing an error).

This is because

target_link_libraries(cxx_static PRIVATE libcxx-abi-static-objects)
links against libcxx-abi-static-objects, which is not defined when building against anything but the bundled libcxxabi.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cmakeBuild system in general and CMake in particularlibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions