q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6e11153ef7a89d1205736567eb7df2a16ec67369

commit 6e11153ef7a89d1205736567eb7df2a16ec67369
Author: Daniel Kolesa <[email protected]>
Date:   Sun Dec 9 22:31:30 2018 +0100

    meson: fix build on power/ppc targets with altivec enabled
---
 header_checks/meson.build | 2 ++
 meson.build               | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/header_checks/meson.build b/header_checks/meson.build
index aebc163b2e..b23e774ec1 100644
--- a/header_checks/meson.build
+++ b/header_checks/meson.build
@@ -12,6 +12,8 @@ if get_option('native-arch-optimization')
   if cc.has_header(native_header) == false
     error('Error, header '+native_header+' is required')
   endif
+
+  config_h.set10('HAVE_'+native_header.underscorify().to_upper(), true)
 endif
 
 header_checks = [
diff --git a/meson.build b/meson.build
index 96f11d3ad2..d3dfd54424 100644
--- a/meson.build
+++ b/meson.build
@@ -157,7 +157,7 @@ if get_option('native-arch-optimization')
     message('ARM64 build - NEON + intrinsics enabled')
   elif host_machine.cpu_family() == 'ppc' or host_machine.cpu_family() == 
'ppc64'
     config_h.set10('BUILD_ALTIVEC', true)
-    add_global_arguments('-maltivec-vectorize', language: 'c')
+    add_global_arguments('-ftree-vectorize', language: 'c')
     add_global_arguments('-maltivec', language: 'c')
     message('PPC/POWER build - ALTIVEC enabled')
   endif

-- 


Reply via email to