raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1dda6461beeba889379c7eac4019d6faf1d5c866

commit 1dda6461beeba889379c7eac4019d6faf1d5c866
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sat Nov 10 15:52:51 2018 +0000

    meson - make having asm headers errors requiring explicit disables
---
 meson.build | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/meson.build b/meson.build
index 70ae50817f..8ec9b5e06a 100644
--- a/meson.build
+++ b/meson.build
@@ -121,7 +121,7 @@ evas_opt_c_args = [ ]
 machine_c_args = [ ]
 compiler = meson.get_compiler('c')
 if host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64'
-  if compiler.check_header('immintrin.h') == true
+  if compiler.has_header('immintrin.h') == true
     if (get_option('cpu-mmx') == true)
       config_h.set10('BUILD_MMX', true)
       cpu_mmx = true
@@ -133,18 +133,22 @@ if host_machine.cpu_family() == 'x86' or 
host_machine.cpu_family() == 'x86_64'
         message('x86 build - SSE3 enabled')
       endif
     endif
+  else
+    error('Perhaps you wish to disble MMX with -Dcpu-mmx=false')
   endif
 elif host_machine.cpu_family() == 'arm'
-  if compiler.check_header('arm_neon.h') == true
+  if compiler.has_header('arm_neon.h') == true
     if (get_option('cpu-neon') == true)
       config_h.set10('BUILD_NEON', true)
       machine_c_args += ['-mfpu=neon', '-ftree-vectorize']
       cpu_neon = true
       message('ARM build - NEON enabled')
     endif
+  else
+    error('Perhaps you wish to disble NEON with -Dcpu-neon=false')
   endif
 elif host_machine.cpu_family() == 'aarch64'
-  if compiler.check_header('arm_neon.h') == true
+  if compiler.has_header('arm_neon.h') == true
     if (get_option('cpu-neon') == true)
       config_h.set10('BUILD_NEON', true)
       config_h.set10('BUILD_NEON_INTRINSICS', true)
@@ -153,15 +157,19 @@ elif host_machine.cpu_family() == 'aarch64'
       cpu_neon_intrinsics = true
       message('ARM64 build - NEON + intrinsics enabled')
     endif
+  else
+    error('Perhaps you wish to disble NEON with -Dcpu-neon=false')
   endif
 elif host_machine.cpu_family() == 'ppc' or host_machine.cpu_family() == 'ppc64'
-  if compiler.check_header('altivec.h') == true
+  if compiler.has_header('altivec.h') == true
     if (get_option('cpu-akltivec') == true)
       config_h.set10('BUILD_ALTIVEC', true)
       machine_c_args += [ '-maltivec' ]
       cpu_altivec = true
       message('PPC/POWER build - ALTIVEC enabled')
     endif
+  else
+    error('Perhaps you wish to disble NEON with -Dcpu-altivec=false')
   endif
 endif
 

-- 


Reply via email to