Configuring Clang Toolchain

  1. After creating a new project, edit the project configuration.

    Project Configuration
  2. Go to the Build Settings tab and select the clang toolchain:

    Clang Toolchain Selection

Note

Clang toolchain is currently an experimental feature, and you may encounter build issues due to incompatibility with ESP-IDF. The following describes how to address the most common build issues on the current ESP-IDF master (ESP-IDF v5.1-dev-992-gaf28c1fa21-dirty). To work around clang build errors, please refer to this workaround guide.