Skip to content

Commit

Permalink
spiffs: only add GCC-specific flags when building with GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Sep 16, 2021
1 parent 3177df4 commit 370473b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/spiffs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 370473b

Please sign in to comment.