-
Notifications
You must be signed in to change notification settings - Fork 42
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
What is the "rustc_binary.wasm" file? #11
Comments
This is a version of rustc I compiled to wasm using several patches. I only have the file locally. I can share it, but I lost the associated sysroot at some point, so I'm not sure how useful it would be. |
I would be happy if you could share it. I have attempted to compile it but it always errors, e.g the wasm32_unknown_wasi target wasn't found. |
rust-lang/miri#722 has the rough procedure necessary for compiling, but it's been a while so things probably changed. In any case here is the compressed file: rustc_binary.wasm.gz If I recall correctly it uses https://github.com/bjorn3/rustc_codegen_cranelift/ as codegen backend, but as I don't recall which commit I built it from, I don't think it will be easy to find the right version of the standard library to build. I believe I patched out the version check, but compiling the standard library with a version that deviates too much will cause crashes or other weird behavior. |
I couldn't find how to compile it, could you link me to a comment (or multiple) with instructions? I still get the target "wasm32_unknown_wasi" not found error. |
Roughly rust-lang/miri#722 (comment). It will need changes to adapt to rustc changes that happened since, but I don't knpw which changes exactly. |
I now get this error:
How could it be fixed? |
CI artifacts for arbitrary commits are only kept for a limited period. You can either build that commit yourself or try to update the instructions for a newer version. I can't help further in the near future unfortunately. |
Fixed the rustc example in #28 and provided a precompiled rustc wasm executable at rust-lang/miri#722 (comment). |
Closing as there is now a working precompiled rustc wasm executable available. |
Where? |
rust-lang/miri#722 (comment) contains the links. |
Hello,
I am looking for the "rustc_binary.wasm" file, but could not find it anywhere. Where could I find it?
Thanks
The text was updated successfully, but these errors were encountered: