-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
zig c++
: Doesn't support c++ modules
#15496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This comment has been minimized.
This comment has been minimized.
zig c++
: Don't support c++ moduleszig c++
: Doesn't support c++ modules
Also tried with build.zig
getting fatal error: module 'helloworld' not found with g++-13 everything is Ok. |
Adding
And this seems to only err because of So I think to implement this, the documentation for clang 18 c++ modules: https://clang.llvm.org/docs/StandardCPlusPlusModules.html#how-to-enable-standard-c-modules |
Bumped into same issue trying to build amd ROCm stuff with
|
Hi, I want to know whether zig will ever support c++ module in the future before migrating my project from cmake to zig. |
Hi @kassane - I would like to work on this issue. The references look quite old and I wanted to check whether they're still valid. If they're not can you let me know how I can get started? |
The problem in question is still the same as that cited in the references. However, I don't know if the current progress of the Zig project will give relevance to this topic. cc: @alexrp - would it be planned to improve support for clang modules? |
Depends on how hard it would be to add, I suppose. Do you have some relevant links for how this stuff works with the vanilla |
Relevant discussion on Ziggit using vanilla Edit 2: The last thread on that post was done on Fedora 42 |
I'm more curious about how the CLI works; CMake obscures too much. |
Unfortunately the topic is very fragmented between LLVM-repo and LLVM-forum. C++/clang modules support: Impl:
|
Is anyone working on this issue? I'm trying following the instructions provided in the clang documentation using clang++-20 and zig c++ (0.15.0-dev.635+7dbd21bd5).
I tried to build with different commands and fails in different ways with zig, however clang-20 is successful: clang++-20 is successful.
Zig using target x86_64-linux-gnuI used triple x Error snippet:
Zig using libc++ libraries provided by clang-20
The previous command is successful, however next step fails: Error snippet:
What are the possible solutions here? |
Uh oh!
There was an error while loading. Please reload this page.
LLVM 16 currently adds support for c++ modules to clang/++, in addition to clang modules.
However, zig cc/c++ does not have optimal support based on the references below.
Test
zig - version 0.11.0-dev.2868+1a455b2dd
cc: @Vexu => (please, add tag)
References
zig c++
does not support kassane/fmt#1The text was updated successfully, but these errors were encountered: