Configuring Clang Toolchain
After creating a new project, edit the project configuration.
Go to the
Build Settings
tab and select the clang toolchain:
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.