thepowersgang / mrustc

Alternative rust compiler (re-implementation)
MIT License
2.18k stars 109 forks source link

How to use mrustc to build this project? #331

Closed ghost closed 2 months ago

ghost commented 2 months ago

https://github.com/IsaacShelton/Adept3x

bjorn3 commented 2 months ago

You almost certainly want to bootstrap the official rustc using mrustc and then build the project using the rustc you built. Mrustc lags behind rustc and mostly omits things not necessary for bootstrapping rustc itself. For exanple async/await is missing.

ghost commented 2 months ago

You don't want to be a full alternative to rustc? I can assume the code is good as it built with rustc. I only want to have the binary, so I don't care about the quality of the error messages by mrustc (which is terrible as you described).

thepowersgang commented 2 months ago

There are basic instructions on how to use mrustc to build non-rustc code in the readme... but be warned, it's not what mrustc is tested for.

For that project, it may work... or it may not, depends on the features it uses.