[build] Disable tflite-custom in cross build
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Tue, 22 Nov 2022 02:09:47 +0000 (11:09 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 22 Nov 2022 07:43:45 +0000 (16:43 +0900)
- 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 <yongjoo1.ahn@samsung.com>
ext/nnstreamer/tensor_filter/meson.build

index 2f681fd..5791359 100644 (file)
@@ -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.