X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=meson.build;h=9eb87c0772ee1776b0d15319163b79821a53225f;hb=a8c92812e4c8b9cc908aa572cfa5a69ba834aaa6;hp=960e4eac91d338b1898fd2f479f24b74369d5a5e;hpb=57a72db63de76d7bdd12606f2ae93abaff28db01;p=plocate diff --git a/meson.build b/meson.build index 960e4ea..9eb87c0 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.7-pre') +project('plocate', 'cpp', default_options: ['buildtype=debugoptimized','cpp_std=c++17'], version: '1.0.8-pre') # Make the version available as a #define. add_project_arguments('-DPLOCATE_VERSION="' + meson.project_version() + '"', language: 'cpp') @@ -12,6 +12,9 @@ atomicdep = cxx.find_library('atomic', required: false) if not uringdep.found() add_project_arguments('-DWITHOUT_URING', language: 'cpp') endif +if cxx.has_header('endian.h') + add_project_arguments('-DHAS_ENDIAN_H', language: 'cpp') +endif # Function multiversioning is x86-only _and_ not available on certain targets # (they need “ifunc”, indirect functions, a GNU extension).