hermit-os / rust-std-hermit

Installable distribution artifacts of rust-std for hermit.
Apache License 2.0
6 stars 2 forks source link

Instructions seems a bit outdated #8

Open kant2002 opened 5 days ago

kant2002 commented 5 days ago

I try to compile Hermit on Windows, and expereince issue building custom std. In the instruction there mentioned install.sh. I see only dist.sh and install-template.sh. Also there some unknown HERMIT_TOOLCHAIN variable, so I cannot recreate steps myself. Can you advice on the direction to move forward.

mkroening commented 5 days ago

You need to follow step one and download a release artifact. Those will contain install.sh generated from install-template.sh.

Does that work for you? Should we clarify in the README? If so, how? :)

kant2002 commented 5 days ago

Thank, it give me some ideas. Since I'm on Windows Windows, not on WSL, I have to build std myself seems to be. Please correct me if I still can/should use existing files from this repo. If not, below I will try to explain where I get stuck.

Currently I'm fighting ./x.ps1 dist ... and environment setup. https://github.com/kant2002/rust-std-hermit/actions/runs/11553105844 for example.

mkroening commented 5 days ago

Native Windows works, but we only supply bash installation scripts right now. You could use git's bash, for example.

mkroening commented 5 days ago

See https://github.com/hermit-os/hermit-rs-template/actions/runs/10725649523/job/29743981018 for example.