esp32: can't use newer C++ standard than c++11 #15685
Labels
Area: cpu
Area: CPU/MCU ports
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
RIOT projects cannot use a newer C++ standard like c++17 with the ESP32 .
In the nvs_flash vendor module the C++ version is fixed and cannot be overwritten.
RIOT/cpu/esp32/vendor/esp-idf/nvs_flash/Makefile
Line 6 in 5406297
Steps to reproduce the issue
Adding
CXXEXFLAGS += -std=c++17
does not work. The c++11 standard is added later in the CXXFLAGS and therefore overwrites the newer standard.Expected results
The newer user desired standard should be applied.
Actual results
std=c++11 is always used.
Potential fix
I'd suggest something like this:
A way to add the flag if no standard newer than c++11 is present would be better. But I don't know Makefiles very well. I usually work with CMake.
The text was updated successfully, but these errors were encountered: