Commit 326e2286 authored by Ell's avatar Ell

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.
parent e84b3b80
Pipeline #120935 passed with stages
in 6 minutes and 32 seconds
......@@ -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:',
......
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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment