Skip to content

[Modules][libc++] Can't use modules with precompiled headers and libc++ #134855

Open
@Algorithm0

Description

@Algorithm0

I'm trying to build a project that uses C++20 modules and precompiled headers at the same time. When I use the LLVM libc++ library in such a scenario, I get a build error.
If I use GCC libstdc++ instead of LLVM libc++, the build goes correctly.
The build also passes correctly if I don't use precompiled headers (write #include inside source files).
Build log is attached as an attachment.
Also, here's a repo that cannot build with libc++.

build_log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:PCHPrecompiled headersclang:modulesC++20 modules and Clang Header Moduleslibc++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