esp-idf/tools/test_apps/system/cxx_build_test
2024-06-23 21:57:36 +08:00
..
main fix(i2c_lcd): using function overloading to keep esp_lcd_new_panel_io_i2c 2024-06-23 21:57:36 +08:00
CMakeLists.txt soc: make register access macros compatible with C++20 2022-06-17 18:09:22 +02:00
README.md ci(esp32c5mp): disable the unsupported tests 2024-04-07 12:13:29 +08:00

Supported Targets ESP32 ESP32-C2 ESP32-C3 ESP32-C5 ESP32-C6 ESP32-H2 ESP32-P4 ESP32-S2 ESP32-S3

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.