aboutsummaryrefslogtreecommitdiff
path: root/delegate
diff options
context:
space:
mode:
authorKevin May <kevin.may@arm.com>2024-05-10 15:40:08 +0100
committerColm Donelan <colm.donelan@arm.com>2024-05-10 20:31:46 +0100
commit2c2f3aa6fbdd50ab5157bfc40f9335337f14abac (patch)
tree3bfbdabf5ebfd94838c038b2b94704737235ac96 /delegate
parent8723eb9c8f1160f9c3e677679dd1840fde5b61aa (diff)
downloadarmnn-2c2f3aa6fbdd50ab5157bfc40f9335337f14abac.tar.gz
MLCE-1276 Fix for ExecuteNetwork abort after inference
* The abort is caused during destruction of flatbuffers::ClassicLocale * Set FLATBUFFERS_LOCALE_INDEPENDENT=0 in delegates and parser so that ClassicLocale is not included Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I34584b05998a62bae2263a2281414fcf8c12d668 Signed-off-by: Colm Donelan <colm.donelan@arm.com>
Diffstat (limited to 'delegate')
-rw-r--r--delegate/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/delegate/CMakeLists.txt b/delegate/CMakeLists.txt
index f8b0300976..ebde7c69ce 100644
--- a/delegate/CMakeLists.txt
+++ b/delegate/CMakeLists.txt
@@ -17,6 +17,9 @@ option(BUILD_SHARED_LIBS "Build share libs" ON)
option(BUILD_DELEGATE_JNI_INTERFACE "Builds a library to allow accessing the Arm NN delegate from Java code.
This is an experimental feature." ON)
+## Do not include flatbuffers::ClassicLocale which can cause abort when destroyed
+add_definitions(-DFLATBUFFERS_LOCALE_INDEPENDENT=0)
+
set(armnnDelegate_sources)
list(APPEND armnnDelegate_sources
common/include/DelegateOptions.hpp