Issue with default toolset change using rustup


Trying to swap toolset to GNU from MSVC. Already installed the GNU nightly and stable toolchains.

I set “rustup default nightly-x86_64-pc-windows-gnu” which changes it so the gnu nightly under “rustup show” has the (default) next to it. Also set “rustup set default-host x86_64-pc-windows-gnu” so the nightly was properly pointing to gnu. However rustc does not seem to point to the correct toolset.


rustup run nightly rustc --print sysroot

However using plain rustc:

rustc --print sysroot

So clearly something is off. The reason I want to change is for RLS to be compiled (though I know I could just run it through rustup), but mostly because I’m curious. Is it not possible to change the rustc binary through rustup?

Current output of rustup show:

C:\Users\USERNAME>rustup show
Default host: x86_64-pc-windows-gnu

installed toolchains

nightly-x86_64-pc-windows-gnu (default)

active toolchain

nightly-x86_64-pc-windows-gnu (default)
rustc 1.17.0-nightly (7846dbe0c 2017-03-26)


What’s the output of rustup override list?


no overrides