Issue 134855
Summary [Modules][libc++] Can't use modules with precompiled headers and libc++
Labels libc++
Assignees
Reporter 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](https://github.com/Algorithm0/modules-and-pch-libcxx-bug) a repo that cannot build with libc++.

[build_log.txt](https://github.com/user-attachments/files/19650286/log.txt)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to