diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-05-26 12:02:30 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-05-26 12:59:43 +0200 |
commit | 1c62899409b6a813210173b1a5958818c1f27899 (patch) | |
tree | f1916085caccf09e19fb8db31c121a605994a4ec /cmake/toolchain/armclang.cmake | |
parent | 0cb936d6affb4cbc58c1766932d579eb5906d3a3 (diff) | |
download | ethos-u-core-platform-1c62899409b6a813210173b1a5958818c1f27899.tar.gz |
Optimizations
Setting NDEBUG for non debug builds. This will disabled the asserts
used by the for example the Ethos-U driver.
Disabling caches by default.
Change-Id: I614edc09b99e9997af7e113c7565d64f273f3fa0
Diffstat (limited to 'cmake/toolchain/armclang.cmake')
-rw-r--r-- | cmake/toolchain/armclang.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/toolchain/armclang.cmake b/cmake/toolchain/armclang.cmake index 72eb456..bb29286 100644 --- a/cmake/toolchain/armclang.cmake +++ b/cmake/toolchain/armclang.cmake @@ -1,5 +1,5 @@ # -# Copyright (c) 2020 Arm Limited. All rights reserved. +# Copyright (c) 2020-2021 Arm Limited. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 # @@ -58,6 +58,10 @@ add_compile_options( "$<$<CONFIG:DEBUG>:-gdwarf-3>" "$<$<COMPILE_LANGUAGE:CXX>:-fno-unwind-tables;-fno-rtti;-fno-exceptions>") +# Compile defines +add_compile_definitions( + "$<$<NOT:$<CONFIG:DEBUG>>:NDEBUG>") + # Link options add_link_options( --cpu=${__LINK_TARGET} |