-
Notifications
You must be signed in to change notification settings - Fork 915
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
WASI compilation? #6518
Comments
Ah I think the issue is |
I'm not sure if this is possible. Also, rustfmt dynamically links against some rustc internals, and I'm not sure if that's going to cause you any issues when you actually go to run rustfmt. |
Does it really dynamically link against I've got pretty far into the compilation (279/290) with this addition to
Current error is:
I guess I will have to do some hackery on |
It's the rustc_driver I believe. I don't remember all the details, but it's the reason that we can't easily distribute a standalone binary for rustfmt outside of rustup since you need to have the correct tool chain installed. |
That's unfortunate. Do you know if there are any plans to disentangle rustfmt from rustc? |
Not to my knowledge, no. |
I'm trying to compile this for
wasm32-wasip2
and not getting very far. Do you guys know if this is possible? I got as far as:However the first error is:
(I have already tried the suggestion.)
Seems like @alexcrichton got this to work a long time ago - see #4358.
The text was updated successfully, but these errors were encountered: