X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=meson.build;h=960e4eac91d338b1898fd2f479f24b74369d5a5e;hb=57a72db63de76d7bdd12606f2ae93abaff28db01;hp=0c79ddf04c98608ebdd7125834ada46a176fdc96;hpb=97c57726bc81c979386c623ad7586c2677fdd865;p=plocate diff --git a/meson.build b/meson.build index 0c79ddf..960e4ea 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('plocate', 'cpp', default_options: ['buildtype=debugoptimized','cpp_std=c++17'], version: '1.0.6-pre') +project('plocate', 'cpp', default_options: ['buildtype=debugoptimized','cpp_std=c++17'], version: '1.0.7-pre') # Make the version available as a #define. add_project_arguments('-DPLOCATE_VERSION="' + meson.project_version() + '"', language: 'cpp') @@ -15,7 +15,9 @@ endif # Function multiversioning is x86-only _and_ not available on certain targets # (they need “ifunc”, indirect functions, a GNU extension). -code = '__attribute__((target("default"))) void func();' +code = '''__attribute__((target("default"))) void foo(); +__attribute__((target("sse2"))) void foo(); +void bar() { foo(); }''' if cxx.compiles(code, name: 'function multiversioning') add_project_arguments('-DHAS_FUNCTION_MULTIVERSIONING', language: 'cpp') endif