diff options
author | Wim Taymans <wtaymans@redhat.com> | 2019-03-27 17:58:48 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-03-27 17:58:48 +0100 |
commit | c8d3d475bb3778504ad0906bec6f54bd8138b633 (patch) | |
tree | 31d860f2d918d6cd87a890356ff002fc74064cb1 /meson.build | |
parent | eaffb25cc28e7acf9fd66d1b4b8832c97cecdcb3 (diff) |
audioconvert: handle more optimizations
Compile an optimized library for the given CPU with the right flags,
then link it with the main library.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 6807ab17..8a6c3b07 100644 --- a/meson.build +++ b/meson.build @@ -50,6 +50,16 @@ if cc.get_id() == 'gcc' language : 'c') endif +sse_args = '-msse' +sse2_args = '-msse2' +ssse3_args = '-mssse3' +sse41_args = '-msse4.1' + +have_sse = cc.has_argument(sse_args) +have_sse2 = cc.has_argument(sse2_args) +have_ssse3 = cc.has_argument(ssse3_args) +have_sse41 = cc.has_argument(sse41_args) + cdata = configuration_data() cdata.set('PIPEWIRE_VERSION_MAJOR', pipewire_version_major) cdata.set('PIPEWIRE_VERSION_MINOR', pipewire_version_minor) |