CLion 2019.2 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 svg - use button to create a new toolchains configuration.
icons general remove svg - use this button to delete a selected toolchain.
icons general arrowUp svg - use this button to move the selected toolchain up in the list.
icons general arrowDown svg - use this button to move the selected toolchain down in the list.

Toolchain name and type

Item

Description

Name

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

Item

Description

MinGW

Choose this item to use MinGW. In the text field, specify the path to the MinGW home or use the one detected by CLion.

Cygwin

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

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

CMake

Item

Description

CMake

Specify the path to CMake home directory, bundled or custom.

Make

Specify the path to the Make utility or use the one detected by CMake.

C Compiler

Specify the path to the desired C compiler or use the one detected by CMake.

C++ compiler

Specify the path to the desired C++ compiler or use the one detected by CMake.

Debugger

Item

Description

Debugger

You can switch between the bundled GDB (currently v 8.0.1 for macOS, v 8.3 for Windows and Linux) and LLDB (version 7.0.1, only on macOS or Linux) or choose a custom GDB.

Note that custom LLDB is not currently supported.

Last modified: 3 October 2019