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:
- use button to create a new toolchains configuration.
- use this button to delete a selected toolchain.
- use this button to move the selected toolchain up in the list.
- 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:
|
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:
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 |
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 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. |