Rust-toolchain.toml target is ignored
⚓ Rust 📅 2025-09-24 👤 surdeus 👁️ 10I am developing Servo on Windows (don't ask why) and I need to run a debugger. First, I tried running rust-lldb and got:
error: the 'rust-lldb.exe' binary, normally provided by the 'rustc' component, is not applicable to the '1.89.0-x86_64-pc-windows-msvc' toolchain
To be clear, lldb (rather than rust-lldb) works, but I can't inspect frame variables, which I need to do. This answer advised to use the non-MSVC toolchain instead. So, I installed the x86_64-pc-windows-gnu toolchain. I then added this line to my rust-toolchain.toml:
targets = [ "x86_64-pc-windows-gnu" ]
But even after building the project, running rustup show gives me:
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\me\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-gnu
stable-x86_64-pc-windows-msvc (default)
nightly-x86_64-pc-windows-msvc
nightly-2021-11-02-x86_64-pc-windows-msvc
nightly-2024-12-15-x86_64-pc-windows-msvc
1.65.0-x86_64-pc-windows-msvc
1.85-x86_64-pc-windows-msvc
1.89.0-x86_64-pc-windows-gnu
1.89.0-x86_64-pc-windows-msvc (active)
active toolchain
----------------
name: 1.89.0-x86_64-pc-windows-msvc
active because: overridden by 'D:\path\to\servo\rust-toolchain.toml'
installed targets:
x86_64-pc-windows-gnu
x86_64-pc-windows-msvc
How do I get it to use the gnu toolchain?
2 posts - 2 participants
🏷️ Rust_feed