CLion 2018.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 your toolchain.

Toolchains list

ItemDescription
Toolchains list and toolbar Here you can create or delete a toolchain and modify an existing one:
add - use button to create a new toolchains configuration.
delete - use this button to delete a selected toolchain.
icon moveUp - use this button to navigate towards the top of the list.
icon moveDown - use this buttons to navigate towards the bottom of the list.

Toolchain name

Name In this text field, specify the name for the toolchain which you are creating or editing.

Environment (Windows)

Select the preferred environment from the drop down list:

ItemDescription
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 expand 2x button and select the desired home directory from the drop down list.
  • Click the browseButton button and select a path from the dialog that opens.
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.
WSL Choose this item to use WSL toolset. Select the automatically detected path to WSL distribution from the drop down list.
Credentials This field is visible only when WSL is selected.
The field represents SSH credentials which is used to work with selected WSL distribution. Click the browseButton button to configure credentials such as username, password and port. User name and password shall be the same as you entered during WSL set up procedure.
Download... Click this link to download the tool currently selected in the drop down list.

CMake

ItemDescription
CMakeIn this field specify the path to CMake home directory you would like to use: bundled or custom.
Make In this field specify the path to the desired Make installation or use the one detected by CMake.
C Compiler In this field specify the path to the desired C compiler or use the one detected by CMake.
C++ compiler In this field specify 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 8.0.1 for macOS, v 8.1 for Windows and Linux) and LLDB (version 5.0, only on macOS or Linux) or choose a custom GDB.

Note: Custom LLDB is not currently supported.
Note: On Cygwin and MinGW-w64 CLion will use GDB that comes with those environments.
Last modified: 24 July 2018

See Also