forked from espressif/esp-idf
build system: use C17 and C++2a by default
Closes https://github.com/espressif/esp-idf/pull/4846 Related to https://github.com/espressif/esp-idf/issues/5003 Related to https://github.com/espressif/esp-idf/issues/6885 Related to https://github.com/espressif/arduino-esp32/issues/5859
This commit is contained in:
@@ -117,9 +117,9 @@ function(__build_set_default_build_specifications)
|
||||
# go into the final binary so have no impact on size
|
||||
"-ggdb")
|
||||
|
||||
list(APPEND c_compile_options "-std=gnu99")
|
||||
list(APPEND c_compile_options "-std=gnu17")
|
||||
|
||||
list(APPEND cxx_compile_options "-std=gnu++11")
|
||||
list(APPEND cxx_compile_options "-std=gnu++20")
|
||||
|
||||
idf_build_set_property(COMPILE_DEFINITIONS "${compile_definitions}" APPEND)
|
||||
idf_build_set_property(COMPILE_OPTIONS "${compile_options}" APPEND)
|
||||
|
Reference in New Issue
Block a user