mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
73989eb05b
commit
0a1e83c599
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user