Skip to content
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

Remove unsupported libc++ modules from module.modulemap #253

Open
monrandria opened this issue Sep 8, 2022 · 1 comment
Open

Remove unsupported libc++ modules from module.modulemap #253

monrandria opened this issue Sep 8, 2022 · 1 comment

Comments

@monrandria
Copy link

Trying to "import std" (using C++ 20xx modules) results in a bunch of errors, as the module.modulemap includes several unsupported std APIs (mostly related to synchronization). Simply commenting out the unsupported APIs from the module.modulemap is sufficient to fix the errors. Would maybe be nice to do this by default.

@sbc100
Copy link
Member

sbc100 commented Sep 8, 2022

IIUC the two module maps in wasi-sdk are built directly from llvm and not maintained by us:

./lib/clang/10.0.0/include/module.modulemap
./share/wasi-sysroot/include/c++/v1/module.modulemap

I'm not sure how they get built but I would imagine any bugs there are upstream llvm bugs. If you have specific ideas about how to fix them that would be most welcome.

They might be fixed simply by the llvm 15 upgrade which is due any day now (since it was just released).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants