meson: Enable dev flags for cpp
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Mon, 17 Dec 2018 13:26:47 +0000 (13:26 +0000)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 18 Dec 2018 07:13:58 +0000 (16:13 +0900)
Had to add a pragma around CityHash64 to make it work with
-f-visibility=hidden

Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de>
Differential Revision: https://phab.enlightenment.org/D7466

meson.build
src/benchmarks/eina/city.cc

index f85681c..876d885 100644 (file)
@@ -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']
index 36ff93b..831adc1 100644 (file)
@@ -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 <algorithm>
@@ -305,3 +307,5 @@ uint128 CityHash128(const char *s, size_t len) {
     return CityHash128WithSeed(s, len, uint128(k0, k1));
   }
 }
+
+#pragma GCC visibility pop