CLion 2021.1 Help

Toolchains

File | Settings | Build,Execution, Deployment | Toolchains for Windows and Linux
CLion | Preferences | Build,Execution, Deployment | Toolchains for macOS

Use this page as the reference when creating a toolchain. See also Toolchains for CMake projects.

Toolchains list

Here you can create or delete a toolchain and modify an existing one:

Icons general add- use button to create a new toolchains configuration.
Icons general remove- use this button to delete a selected toolchain.
Icons general arrow up- use this button to move the selected toolchain up in the list.
Icons general arrow down- use this button to move the selected toolchain down in the list.

Toolchain name and type

ItemDescription
NameSpecify the toolchain name.
Type (Linux and macOS)

Choose from the drop down list:

  • System- the default value for a toolchain not to be used for remote development.

  • Remote Host- choose this option for Remote Development and provide the remote host credentials in the Credentials field.

Environment (Windows)

Select the preferred environment from the drop down list:

ItemDescription
MinGWChoose this item to use MinGW. In the text field, specify the path to the MinGW home or use the one detected by CLion.
CygwinChoose this item to use Cygwin. In the text field, specify the path to the Cygwin home or use the one detected by CLion.
Visual Studio

Choose this item to use Microsoft Visual C++ compiler.

In the text field, specify the path to the Microsoft Visual Studio home (for example, C:\Program Files (x86)\Microsoft Visual Studio 14 .0). To do that, use one of the following ways:

  • Type the full path to the desired directory.

  • Click the the Browse button button and select a path from the dialog that opens.

In the Architecture, Platform, and Version fields, specify the architecture (x86, amd64, x86_arm, amd64_arm, etc), type of a platform (store, uwp, onecore, or leave it blank) and version (Windows SDK name or leave it blank).

WSL

Choose this item to use the WSL toolset. Select the automatically detected path to WSL distribution from the drop down list.

Credentials- this field represents the SSH credentials that will be used to work with the selected WSL distribution. Click the open button to configure credentials such as username, password and port. User name and password should be the same as you entered during the WSL set up procedure.

Remote HostChoose this item for Remote Development. In the Credentials field, provide the remote host credentials.

CMake

ItemDescription
CMakeSpecify the path to CMake home directory, bundled or custom.
MakeSpecify the path to the Make utility or use the one detected by CMake.
C CompilerSpecify the path to the desired C compiler or use the one detected by CMake.
C++ compilerSpecify the path to the desired C++ compiler or use the one detected by CMake.

Debugger

ItemDescription
Debugger

You can switch between the bundled GDB (currently v 10.1 for macOS, v 10.1 for Windows and Linux) and LLDB (version 10.0.1 on macOS or Linux and 9.0.0 on Windows MSVC), or choose a custom GDB.

Note that custom LLDB is not currently supported.

Last modified: 23 May 2021