summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyeongseok Oh <hseok82.oh@samsung.com>2022-06-24 16:18:11 +0900
committerGitHub <noreply@github.com>2022-06-24 16:18:11 +0900
commita0fbb99ee34ae112e97b2f1a5d2ba165f2f3908c (patch)
tree3be724c102e929d161a1fcc4febfa31d39bba1bc
parente7148f73e46bd3608770bebecb8da395b7fd88a5 (diff)
downloadnnfw-a0fbb99ee34ae112e97b2f1a5d2ba165f2f3908c.tar.gz
nnfw-a0fbb99ee34ae112e97b2f1a5d2ba165f2f3908c.tar.bz2
nnfw-a0fbb99ee34ae112e97b2f1a5d2ba165f2f3908c.zip
[infra/onert] Set default ACL build type to release (#9333)
This commit changes default ACL build type to release. If developer want to build debug type, set `DEBUG_ARMCOMPUTE=ON` on configure. Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com> Co-authored-by: chunseoklee <chunseoklee@naver.com>
-rw-r--r--infra/nnfw/cmake/CfgOptionFlags.cmake1
-rw-r--r--infra/nnfw/cmake/packages/ARMComputeConfig.cmake8
2 files changed, 5 insertions, 4 deletions
diff --git a/infra/nnfw/cmake/CfgOptionFlags.cmake b/infra/nnfw/cmake/CfgOptionFlags.cmake
index 5371120ad..86dd7c5e1 100644
--- a/infra/nnfw/cmake/CfgOptionFlags.cmake
+++ b/infra/nnfw/cmake/CfgOptionFlags.cmake
@@ -75,6 +75,7 @@ option(BUILD_TENSORFLOW_LITE "Build TensorFlow Lite from the downloaded source"
option(BUILD_TENSORFLOW_LITE_2_3_0 "Build TensorFlow Lite 2.3.0 from the downloaded source" OFF)
option(BUILD_TENSORFLOW_LITE_GPU "Build TensorFlow Lite GPU delegate from the downloaded source" OFF)
option(BUILD_ARMCOMPUTE "Build ARM Compute from the downloaded source" ON)
+option(DEBUG_ARMCOMPUTE "Build ARM Compute as debug type" OFF)
option(BUILD_RUY "Build ruy library from the downloaded source" ON)
option(BUILD_CPUINFO "Build cpuinfo library from the downloaded source" ON)
option(PROFILE_RUY "Enable ruy library profiling" OFF)
diff --git a/infra/nnfw/cmake/packages/ARMComputeConfig.cmake b/infra/nnfw/cmake/packages/ARMComputeConfig.cmake
index 6ae7dea34..f6a4efd96 100644
--- a/infra/nnfw/cmake/packages/ARMComputeConfig.cmake
+++ b/infra/nnfw/cmake/packages/ARMComputeConfig.cmake
@@ -90,11 +90,11 @@ function(_ARMCompute_Build ARMComputeInstall_DIR)
return()
endif(NOT SCONS_PATH)
- if(CMAKE_BUILD_TYPE)
- string(TOLOWER "${CMAKE_BUILD_TYPE}" SCON_BUILD_TYPE)
- else(CMAKE_BUILD_TYPE)
+ if(DEBUG_ARMCOMPUTE)
+ set(SCON_BUILD_TYPE "debug")
+ else(DEBUG_ARMCOMPUTE)
set(SCON_BUILD_TYPE "release")
- endif(CMAKE_BUILD_TYPE)
+ endif(DEBUG_ARMCOMPUTE)
#### Architecture-specific configurations