From 87f4b84832881b5f45f11db6a6da769d11f883c4 Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Tue, 22 Nov 2022 11:09:47 +0900 Subject: [PATCH] [build] Disable tflite-custom in cross build - In cross build, found tflite lib could has different arch with target system. Disable this feature for cross build. - This fixes #3964 Signed-off-by: Yongjoo Ahn --- ext/nnstreamer/tensor_filter/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/nnstreamer/tensor_filter/meson.build b/ext/nnstreamer/tensor_filter/meson.build index 2f681fd..5791359 100644 --- a/ext/nnstreamer/tensor_filter/meson.build +++ b/ext/nnstreamer/tensor_filter/meson.build @@ -285,7 +285,7 @@ if tflite2_support_is_available ) - if get_option('tflite2-custom-support').enabled() or get_option('tflite2-custom-support').auto() + if (get_option('tflite2-custom-support').enabled() or get_option('tflite2-custom-support').auto()) and not meson.is_cross_build() ## Create libtensorflow2-lite-custom.so support. ## @todo This assumes the same tflite version with the above. -- 2.7.4