chore(compilation): Silence some warning on apple silicon (#2712)

When compiling `simu`, `clang` complains about all the StdPeriph headers declaring assembly with invalid operand width.
This commit is contained in:
Raphael Coeffic
2022-11-23 15:55:45 +10:00
committed by GitHub
parent 940f955bbc
commit ab26bf3c66
+4
View File
@@ -1,2 +1,6 @@
# Native toolchain
if(APPLE)
set(CMAKE_C_FLAGS "-Wno-asm-operand-widths -Wno-deprecated-declarations")
set(CMAKE_CXX_FLAGS "-Wno-asm-operand-widths -Wno-deprecated-declarations")
endif()