MSVC toolchain is not supported. Please use GNU toolchain

前端 未结 2 1057
别那么骄傲
别那么骄傲 2020-12-29 10:09

I was trying to debug Rust in CLion when I was greeted with the aforementioned

I updated my toolchain setting to use the suggested default as such:

相关标签:
2条回答
  • 2020-12-29 10:20

    Error message is related about Rust toolchain, if you haven't you need to install gnu toolchain for Rust.

    > rustup toolchain install stable-x86_64-pc-windows-gnu
    

    Then after easiest way to solve this problem set it as default toolchain

    > rustup default stable-x86_64-pc-windows-gnu
    

    This is for stable channel you are free to use nightly or beta.

    0 讨论(0)
  • 2020-12-29 10:47

    As well as Ömer Erden's answer it is worth pointing out that Jetbarins now has an article about how to configure Clion for Rust complete with some tips on what settings are applicable to Rust development.

    Debugging Rust Code in CLion

    Particularly this paragraph is relevant to the question:

    On Windows, go to Settings | Build, Execution, Deployment | Toolchain and set either Cygwin or MinGW as your working environment. Then, run rustup toolchain list and check the first line: it should be one of the gnu versions matching the bitness of the debugger. For example, if you’re working on MinGW (32-bit), the default toolchain should be i686-pc-windows-gnu. If you’re on MinGW64, it should be x86_64-pc-windows-gnu. You can set the appropriate toolchain by running rustup default <toolchain_name>.

    0 讨论(0)
提交回复
热议问题