meson script condition fix
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 1 Feb 2024 06:29:01 +0000 (15:29 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 2 Feb 2024 03:21:54 +0000 (12:21 +0900)
Whether to include fp16 codes should depend on
fp16 enable/disable, not on the platform name
directly.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
nntrainer/utils/meson.build

index 88a905efb0e38d166cb764ba79451300e511f83a..40e9fe5b747dda4871d29306aa79d2df4534ee54 100644 (file)
@@ -24,7 +24,7 @@ if get_option('enable-trace')
   util_headers += 'tracer.h'
 endif
 
-if get_option('platform') == 'android'
+if get_option('enable-fp16')
   util_sources += 'util_simd_neon.cpp'
   util_headers += 'util_simd_neon.h'
 endif