From: Lauro Moura Date: Mon, 17 Dec 2018 13:26:47 +0000 (+0000) Subject: meson: Enable dev flags for cpp X-Git-Tag: submit/tizen/20181218.080725~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b1c5d0d2f20c0e157a36336e6d356f0a9c346f3;p=platform%2Fupstream%2Fefl.git meson: Enable dev flags for cpp Had to add a pragma around CityHash64 to make it work with -f-visibility=hidden Reviewed-by: Marcel Hollerbach Differential Revision: https://phab.enlightenment.org/D7466 --- diff --git a/meson.build b/meson.build index f85681c..876d885 100644 --- a/meson.build +++ b/meson.build @@ -91,6 +91,7 @@ foreach cf: dev_cflags_try endif endforeach add_global_arguments(dev_cflags, language: 'c') +add_global_arguments(dev_cflags, language: 'cpp') foreach lang : ['c', 'objc', 'cpp'] diff --git a/src/benchmarks/eina/city.cc b/src/benchmarks/eina/city.cc index 36ff93b..831adc1 100644 --- a/src/benchmarks/eina/city.cc +++ b/src/benchmarks/eina/city.cc @@ -27,6 +27,8 @@ // possible hash functions, by using SIMD instructions, or by // compromising on hash quality. +#pragma GCC visibility push(default) + #include "city.h" #include @@ -305,3 +307,5 @@ uint128 CityHash128(const char *s, size_t len) { return CityHash128WithSeed(s, len, uint128(k0, k1)); } } + +#pragma GCC visibility pop