Skip to content

Instantly share code, notes, and snippets.

@MabezDev
Created November 10, 2022 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MabezDev/ab999b90af2e0b95ec1eafd5b8bb284c to your computer and use it in GitHub Desktop.
Save MabezDev/ab999b90af2e0b95ec1eafd5b8bb284c to your computer and use it in GitHub Desktop.
  1. Clone https://github.com/esp-rs/rust
  2. Ensure deps are met before starting the installation process, see the README.
  3. Run ./configure --experimental-targets=Xtensa --release-channel=nightly --enable-extended --tools=clippy,cargo,rustfmt
  4. Start the build with ./x.py build --stage 2
  5. Link the custom toolchain to rustup:
       rustup toolchain link esp build/$HOST/stage2
    
    Where $HOST is your machines triple, i.e x86_64-unknown-linux-gnu
  6. The toolchain should now be usable via +esp, see the shorthand syntax: https://rust-lang.github.io/rustup/overrides.html#toolchain-override-shorthand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment