diff options
author | Tom Callaway <spot@fedoraproject.org> | 2020-09-12 04:28:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 09:28:27 +0100 |
commit | d7d08595e2c354d4c7245e3986ceed353d336ff5 (patch) | |
tree | c1eef504b90226110f95e15ee1ebc4d49e283f8a /meson.build | |
parent | 83f682385543d949e4ee5e1271a96beddaa9a23b (diff) | |
download | libfuse-d7d08595e2c354d4c7245e3986ceed353d336ff5.tar.gz |
Update Travis to Ubuntu Bionic
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/meson.build b/meson.build index e17ebb0..b2b85da 100644 --- a/meson.build +++ b/meson.build @@ -89,12 +89,17 @@ endif # gcc-10 and newer support the symver attribute which we need to use if we # want to support LTO +# recent clang and gcc both support __has_attribute (and if they are too old +# to have __has_attribute, then they are too old to support symver) +# other compilers might not have __has_attribute, but in those cases +# it is safe for this check to fail and for us to fallback to the old _asm_ +# method for symver code = ''' -__attribute__((symver ("get@@TEST_0"))) int get_4() { - return 4; -} +#if defined __has_attribute && !__has_attribute (symver) +#error symver attribute not supported +#endif + int main(void) { - (void) get_4(); return 0; }''' if cc.compiles(code, args: [ '-O0', '-c']) |