Issue with default toolset change using rustup


#1

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.

Proper:

rustup run nightly rustc --print sysroot
C:\Users\USERNAME\.rustup\toolchains\nightly-x86_64-pc-windows-gnu

However using plain rustc:

rustc --print sysroot
C:\Users\USERNAME\.rustup\toolchains\nightly-x86_64-pc-windows-msvc

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
--------------------

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

active toolchain
----------------

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

#2

What’s the output of rustup override list?


#3

no overrides