Back to Esp Idf

C++ build test

tools/test_apps/system/cxx_build_test/README.md

6.1-dev1.1 KB
Original Source
Supported TargetsESP32ESP32-C2ESP32-C3ESP32-C5ESP32-C6ESP32-C61ESP32-H2ESP32-H21ESP32-H4ESP32-P4ESP32-S2ESP32-S3ESP32-S31

C++ build test

This build-only app can be used to check if certain headers, macros or features can be successfully compiled in a C++ source file. It furthermore checks the current C++ language standard set in IDF is the expected one.

Note: C++ compatibility of all public header files is checked by general public header check already.

This App Broke My Build :(

It is possible that the language standard for IDF has been changed without changing the test in this application.

Adding New Test

Create a new file main/test_<name>.cpp and add it to main/CMakeLists.txt. If you need to check specific compiler flags, use set_source_files_properties CMake function to adjust the compilation flags for the given source file.