[gegl] meson: remove SSE-and-friends build options



commit 326e22861c8dbcb9ce464945dcdd6d0d141ec589
Author: Ell <ell_se yahoo com>
Date:   Sat Oct 5 11:57:40 2019 +0300

    meson: remove SSE-and-friends build options
    
    The meson build would previously enable various ISA extensions by
    default, based only on compiler support.  This would cause GEGL to
    crash on machines that don't actually support these extensions.
    Since GEGL itself currently makes no direct use of these
    extensions -- the build options only affected compiler flags --
    this is pointless: people who build GEGL can simply add the
    necessary compiler flags themselves, in particular, -march=native
    for local builds.
    
    This commit removes all the ISA-extension build options.  We might
    want to tweak the default optimization options instead, similarly
    to the Autoconf build.

 meson.build       | 28 ----------------------------
 meson_options.txt |  5 -----
 2 files changed, 33 deletions(-)
---
diff --git a/meson.build b/meson.build
index 4427844f9..bb8f4461c 100644
--- a/meson.build
+++ b/meson.build
@@ -106,29 +106,6 @@ c_arguments += [
   '-Wno-deprecated-declarations',
 ]
 
-################################################################################
-# Check for compiler CPU extensions
-
-c_arguments += [
-  '-mfpmath=sse',
-]
-
-optionnal_arguments = [
-  'mmx',
-  'sse',
-  'sse2',
-  'sse4.1',
-  'f16c',
-]
-
-foreach arg : optionnal_arguments
-  if get_option('enable-@0@'.format(arg.underscorify()))
-    c_arguments += '-m@0@'.format(arg)
-  endif
-endforeach
-
-add_project_arguments(cc.get_supported_arguments(c_arguments), language: 'c')
-
 ################################################################################
 # Utilities
 
@@ -361,11 +338,6 @@ message('\n'.join(['',
 'Optional features:',
 '  GEGL docs:       @0@'.format(get_option('docs')),
 '  Build workshop:  @0@'.format(get_option('workshop')),
-'  SIMD:            sse:@0@ mmx:@1@ sse2:@2@'.format(
-  get_option('enable-sse'),
-  get_option('enable-mmx'),
-  get_option('enable-sse2')
-),
 '  Vala support:    @0@'.format(vapigen.found()),
 '',
 'Optional dependencies:',
diff --git a/meson_options.txt b/meson_options.txt
index 2686ed9ca..41bdab15c 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,8 +1,3 @@
-option('enable-mmx',    type: 'boolean', value: true, description: 'enable MMX support')
-option('enable-sse',    type: 'boolean', value: true, description: 'enable SSE support')
-option('enable-sse2',   type: 'boolean', value: true, description: 'enable SSE2 support')
-option('enable-sse4_1', type: 'boolean', value: true, description: 'enable SSE4.1 support')
-option('enable-f16c',   type: 'boolean', value: false, description: 'enable hardware half-float support')
 option('docs',          type: 'boolean', value: 'false')
 option('workshop',      type: 'boolean', value: 'false')
 option('introspection', type: 'boolean', value: 'true')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]