mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
spiffs: only add GCC-specific flags when building with GCC
This commit is contained in:
parent
3177df4986
commit
370473b772
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user