sw/vec_iree Allow additional warning flags to accommodate IREE upstream change There was a recent IREE upstream change https://github.com/iree-org/iree/pull/18912. We need to allow additional warning flags to avoid breakage in Kelvin compilation. Change-Id: Iecefb3fbd41b84b5608d6b16227f683193b0aac3
diff --git a/cmake/riscv_iree_gcc.cmake b/cmake/riscv_iree_gcc.cmake index 0f59f1c..19ab458 100644 --- a/cmake/riscv_iree_gcc.cmake +++ b/cmake/riscv_iree_gcc.cmake
@@ -69,7 +69,7 @@ "-L${RISCV_TOOLCHAIN_ROOT}/riscv32-unknown-elf/lib/newlib-nano/ -specs=nano.specs" ) -set(CMAKE_C_FLAGS "${RISCV_COMPILER_FLAGS} ${CMAKE_C_FLAGS} -Wno-char-subscripts -Wno-format") +set(CMAKE_C_FLAGS "${RISCV_COMPILER_FLAGS} ${CMAKE_C_FLAGS} -Wno-char-subscripts -Wno-format -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -Wno-pointer-sign") set(CMAKE_CXX_FLAGS "${RISCV_COMPILER_FLAGS} ${RISCV_COMPILER_FLAGS_CXX} ${CMAKE_CXX_FLAGS}") set(CMAKE_ASM_FLAGS "${RISCV_COMPILER_FLAGS} ${CMAKE_ASM_FLAGS}") set(CMAKE_C_FLAGS_DEBUG "${RISCV_COMPILER_FLAGS_DEBUG} ${CMAKE_C_FLAGS_DEBUG}")