[2/3] acl: update the build for multi-arch
Checks
Commit Message
For the introduction of the meson build, the build file for the ACL library
architecture specific files was not ported. This means the compiler didn't
know about the optimized versions when building the RTE_ACL library for
each architecture.
Now hook up the different architecures by checking the architecture build
environment and including the right objects.
Weak symbols aren't working with this commit but will get fixed to properly
select the right runtime version in a future commit.
Signed-off-by: Aaron Conole <aconole@redhat.com>
---
lib/librte_acl/meson.build | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
@@ -27,5 +27,8 @@ if arch_subdir == 'x86'
objs += avx2_tmplib.extract_objects('acl_run_avx2.c')
cflags += '-DCC_AVX2_SUPPORT'
endif
-
+elif arch_subdir == 'arm' and host_machine.cpu_family().startswith('aarch64')
+ sources += files('acl_run_neon.c')
+elif arch_subdir == 'ppc_64'
+ sources += files('acl_run_altivec.c')
endif