diff options
author | TTornblom <thomas.tornblom@iar.com> | 2020-04-16 13:53:38 +0200 |
---|---|---|
committer | Antonio de Angelis <Antonio.deAngelis@arm.com> | 2023-08-16 12:36:21 +0100 |
commit | e4f6d79bbe70933d145479d89b45be265c26ca26 (patch) | |
tree | 08a5d33ee9ded14707cebda9f9700316c6bb7d8d /CMakeLists.txt | |
parent | a4c01dd6e9264c40c33a1b9fcd3309b0cad0595f (diff) | |
download | mbedtls-e4f6d79bbe70933d145479d89b45be265c26ca26.zip mbedtls-e4f6d79bbe70933d145479d89b45be265c26ca26.tar.gz mbedtls-e4f6d79bbe70933d145479d89b45be265c26ca26.tar.bz2 |
BUILD: Update For IAR support
Applied the same change as in mbed-crypto for using this as a sub
project with the IAR toolchain. Use __asm generic ,and avoid empty
enum. Avoid declaration of array with null size. This is a porting
of the original patch contributed to trusted-firmware-m.
Signed-off-by: TTornblom <thomas.tornblom@iar.com>
Signed-off-by: Michel Jaouen <michel.jaouen@st.com>
Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9092c49..4d7e0b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,7 +226,9 @@ if(CMAKE_COMPILER_IS_CLANG) endif(CMAKE_COMPILER_IS_CLANG) if(CMAKE_COMPILER_IS_IAR) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --warn_about_c_style_casts -Ohz") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --warn_about_c_style_casts") + set(CMAKE_C_FLAGS_RELEASE "-Ohz") + set(CMAKE_C_FLAGS_DEBUG "--debug -On") endif(CMAKE_COMPILER_IS_IAR) if(CMAKE_COMPILER_IS_MSVC) |