Compare commits

...

3 Commits

Author SHA1 Message Date
Denis Feklushkin
11e4deffdb
Merge 41830433f4 into dbce23f8a4 2024-08-22 15:22:26 +02:00
Denis Feklushkin
41830433f4 fix(spiffs): Compilation with -save-temps fixed 2024-04-16 10:34:43 +03:00
Denis Feklushkin
10ccbcd94d fix(spiffs): set_source_files_properties uneffective: points to unavailable files 2024-04-15 19:05:00 +03:00

View File

@ -19,9 +19,9 @@ idf_component_register(SRCS ${srcs}
REQUIRES esp_partition
PRIV_REQUIRES ${pr} spi_flash)
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
set_source_files_properties(spiffs/src/spiffs_nucleus.c PROPERTIES COMPILE_FLAGS -Wno-stringop-truncation)
endif()
# Upstream SPIFFS code uses format specifiers in debug logging macros inconsistently
list(TRANSFORM original_srcs PREPEND "${CMAKE_CURRENT_LIST_DIR}/")
set_source_files_properties(${original_srcs} PROPERTIES COMPILE_FLAGS -Wno-format)
get_source_file_property(nucleus_cc_flags "${CMAKE_CURRENT_LIST_DIR}/spiffs/src/spiffs_nucleus.c" COMPILE_FLAGS)
set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/spiffs/src/spiffs_nucleus.c" PROPERTIES COMPILE_FLAGS "${nucleus_cc_flags} -Wno-tautological-compare")