Build: Fix IAR version for Release builds
* IAR v9.32.2 fix compilation error with release build
Signed-off-by: Dávid Házi <david.hazi@arm.com>
Change-Id: Ie4b0c2f5de8b9dcf58d52a31009e0dcfe947a424
diff --git a/toolchain_IARARM.cmake b/toolchain_IARARM.cmake
index 41e8502..002bdb4 100644
--- a/toolchain_IARARM.cmake
+++ b/toolchain_IARARM.cmake
@@ -98,12 +98,12 @@
# Can't use the highest optimization with IAR on v8.1m arch because of the
# compilation bug in mbedcrypto
if ((CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL "9.20") AND
- (CMAKE_C_COMPILER_VERSION VERSION_LESS_EQUAL "9.32") AND
+ (CMAKE_C_COMPILER_VERSION VERSION_LESS_EQUAL "9.32.1") AND
((TFM_SYSTEM_PROCESSOR STREQUAL "cortex-m85") OR
(TFM_SYSTEM_PROCESSOR STREQUAL "cortex-m55")) AND
- (CMAKE_BUILD_TYPE STREQUAL "Release"))
- message(FATAL_ERROR "Release build isn't available for M55 and M85"
- " cores with IAR version between 9.20 and 9.32.")
+ (NOT (CMAKE_BUILD_TYPE STREQUAL "Debug")))
+ message(FATAL_ERROR "Only debug build available for M55 and M85"
+ " cores with IAR version between 9.20 and 9.32.1")
endif()
endmacro()