spiffs: only add GCC-specific flags when building with GCC

This commit is contained in:
Ivan Grokhotkov 2021-09-10 19:23:12 +02:00
parent 3177df4986
commit 370473b772

View File

@ -10,4 +10,6 @@ idf_component_register(SRCS "esp_spiffs.c"
REQUIRES spi_flash
PRIV_REQUIRES bootloader_support esptool_py)
set_source_files_properties(spiffs/src/spiffs_nucleus.c PROPERTIES COMPILE_FLAGS -Wno-stringop-truncation)
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
set_source_files_properties(spiffs/src/spiffs_nucleus.c PROPERTIES COMPILE_FLAGS -Wno-stringop-truncation)
endif()