X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=meson.build;h=081da3ac6fe7bdf0b17846bce5f9c7670e76ee3f;hb=68420d367afbc324f77f950b0f9e1ff4298cb050;hp=c976c028214e93934764b148e9e585f2a3c6bf9a;hpb=ae5100778b5b84f063b9b958ab8fe68da8b6e0ce;p=plocate diff --git a/meson.build b/meson.build index c976c02..081da3a 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.5-pre') +project('plocate', 'cpp', default_options: ['buildtype=debugoptimized','cpp_std=c++17'], version: '1.0.6') # 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