forked from espressif/esp-idf
examples, components: remove C/C++ standard overrides
...where they are not necessary after switching to C17 and C++20.
This commit is contained in:
@@ -127,6 +127,3 @@ else()
|
|||||||
REQUIRES esp_pm esp_ringbuf freertos soc hal esp_hw_support
|
REQUIRES esp_pm esp_ringbuf freertos soc hal esp_hw_support
|
||||||
LDFRAGMENTS linker.lf)
|
LDFRAGMENTS linker.lf)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# uses C11 atomic feature
|
|
||||||
set_source_files_properties(spi_master.c PROPERTIES COMPILE_FLAGS -std=gnu11)
|
|
||||||
|
@@ -53,6 +53,3 @@ idf_component_register(SRCS "${srcs}"
|
|||||||
INCLUDE_DIRS ${include}
|
INCLUDE_DIRS ${include}
|
||||||
REQUIRES "esp_event" # For using "ESP_EVENT_DECLARE_BASE" in header file
|
REQUIRES "esp_event" # For using "ESP_EVENT_DECLARE_BASE" in header file
|
||||||
PRIV_REQUIRES ${priv_requires})
|
PRIV_REQUIRES ${priv_requires})
|
||||||
|
|
||||||
# uses C11 atomic feature
|
|
||||||
set_source_files_properties(src/esp_eth.c PROPERTIES COMPILE_FLAGS -std=gnu11)
|
|
||||||
|
@@ -25,8 +25,3 @@ idf_component_register(SRCS ${srcs}
|
|||||||
REQUIRES ${requires}
|
REQUIRES ${requires}
|
||||||
PRIV_REQUIRES ${priv_requires}
|
PRIV_REQUIRES ${priv_requires}
|
||||||
LDFRAGMENTS linker.lf)
|
LDFRAGMENTS linker.lf)
|
||||||
|
|
||||||
if(CONFIG_ESP_EVENT_LOOP_PROFILING)
|
|
||||||
# uses C11 atomic feature
|
|
||||||
set_source_files_properties(esp_event.c PROPERTIES COMPILE_FLAGS -std=gnu11)
|
|
||||||
endif()
|
|
||||||
|
@@ -4,8 +4,6 @@ idf_component_register(SRCS "esp_mqtt_cxx.cpp"
|
|||||||
INCLUDE_DIRS "include"
|
INCLUDE_DIRS "include"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_options(${COMPONENT_LIB} PRIVATE "-std=gnu++17")
|
|
||||||
|
|
||||||
if(TEST_BUILD)
|
if(TEST_BUILD)
|
||||||
message(STATUS "Test build")
|
message(STATUS "Test build")
|
||||||
idf_component_get_property(mqtt_dir mqtt COMPONENT_DIR)
|
idf_component_get_property(mqtt_dir mqtt COMPONENT_DIR)
|
||||||
|
@@ -1,4 +1,2 @@
|
|||||||
idf_component_register(SRCS "mqtt_ssl_example.cpp"
|
idf_component_register(SRCS "mqtt_ssl_example.cpp"
|
||||||
INCLUDE_DIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
|
||||||
target_compile_options(${COMPONENT_LIB} PRIVATE "-std=gnu++17")
|
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
idf_component_register(SRCS "mqtt_tcp_example.cpp"
|
idf_component_register(SRCS "mqtt_tcp_example.cpp"
|
||||||
INCLUDE_DIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
target_compile_options(${COMPONENT_LIB} PRIVATE "-std=gnu++17")
|
|
||||||
|
Reference in New Issue
Block a user