mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(cmake): don't add Clang flags not supported in Apple toolchain
This commit is contained in:
parent
7f171f01b1
commit
1bd417ad68
@ -121,8 +121,10 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
|||||||
list(APPEND compile_options "-Wno-c2x-extensions")
|
list(APPEND compile_options "-Wno-c2x-extensions")
|
||||||
# warning on xMPU_SETTINGS for esp32s2 has size 0 for C and 1 for C++
|
# warning on xMPU_SETTINGS for esp32s2 has size 0 for C and 1 for C++
|
||||||
list(APPEND compile_options "-Wno-extern-c-compat")
|
list(APPEND compile_options "-Wno-extern-c-compat")
|
||||||
|
if(NOT (CONFIG_IDF_TARGET_LINUX AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin"))
|
||||||
# warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1
|
# warning: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1
|
||||||
list(APPEND compile_options "-Wno-single-bit-bitfield-constant-conversion")
|
list(APPEND compile_options "-Wno-single-bit-bitfield-constant-conversion")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
# More warnings may exist in unit tests and example projects.
|
# More warnings may exist in unit tests and example projects.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user