diff --git a/meson.build b/meson.build index 4eee85f..2513cc7 100644 --- a/meson.build +++ b/meson.build @@ -21,14 +21,6 @@ if buildtype != 'debug' and buildtype != 'debugoptimized' c_args += '-DNDEBUG' endif -cpu = host_machine.cpu_family() - -if cpu == 'x86_64' - c_args += '-m' + get_option('x86_64-simd') -elif cpu == 'arm' - c_args += '-mfpu=neon' -endif - add_project_arguments(c_args, language: 'c') cc = meson.get_compiler('c') diff --git a/meson_options.txt b/meson_options.txt index f2e80f4..f32b394 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -2,5 +2,3 @@ option('benchmarks', type: 'boolean', value: false, description: 'Build benchmar option('examples', type: 'boolean', value: false, description: 'Build examples') option('jpeg', type: 'feature', value: 'auto', description: 'Enable JPEG compression') option('tls', type: 'feature', value: 'auto', description: 'Enable encryption & authentication') -option('x86_64-simd', type: 'string', value: 'sse2', - description: 'Choose SIMD extension for x86_64 release build')