chore: make firmware check fatal error by default (#5749)

This commit is contained in:
Peter Feerick
2025-01-13 10:05:12 +10:00
committed by GitHub
parent 608c62bc35
commit 424a0f1834
+2 -2
View File
@@ -480,9 +480,9 @@ if(NATIVE_BUILD)
return()
endif()
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "14.2.1")
message(WARNING "Only Arm GNU Toolchain version 14.2.rel1 is supported")
if(NOT USE_UNSUPPORTED_TOOLCHAIN AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "14.2.1")
message("CPP Compiler: ${CMAKE_CXX_COMPILER}, version ${CMAKE_CXX_COMPILER_VERSION}")
message(FATAL_ERROR "Only Arm GNU Toolchain version 14.2.rel1 is supported!!")
endif()
set(CMAKE_C_FLAGS "${FIRMWARE_C_FLAGS}")