Skip to content
Discussion options

You must be logged in to vote

gcc 还不支持 stdmodules

clang 对 stdmodules 支持也还不完整,构建工具目前没法取到 clang 提供的 std.cppm,尽管 clang 自身能找到 std ,但是构建系统还需要做很多额外的事情,都是需要获取 std modules 才能完成,不是简单一个 cpp file 构建这么简单。

也就最新的 pr 才刚刚增加了特定的 flag 去告诉构建工具,哪里能找到 libc++ module,需要等 clang 下个版本发布后,才能改进支持。llvm/llvm-project#76451

目前仅仅只有 msvc 上,stdmodules 才是完全可用的。

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@charfan
Comment options

@waruqi
Comment options

@charfan
Comment options

Answer selected by charfan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants