summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-12-17 13:26:47 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-17 16:38:40 +0100
commit95069a3038d8ba59a4e8d372d26173c777a84f08 (patch)
tree6b71331051b90996877e1ce595f47ff6cc04b42e
parent3f17b4f05494596f7a13c61229d2b4c6766d0a3e (diff)
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 <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7466
-rw-r--r--meson.build1
-rw-r--r--src/benchmarks/eina/city.cc4
2 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index f85681c7cc..876d885a2a 100644
--- a/meson.build
+++ b/meson.build
@@ -91,6 +91,7 @@ foreach cf: dev_cflags_try
91 endif 91 endif
92endforeach 92endforeach
93add_global_arguments(dev_cflags, language: 'c') 93add_global_arguments(dev_cflags, language: 'c')
94add_global_arguments(dev_cflags, language: 'cpp')
94 95
95 96
96foreach lang : ['c', 'objc', 'cpp'] 97foreach lang : ['c', 'objc', 'cpp']
diff --git a/src/benchmarks/eina/city.cc b/src/benchmarks/eina/city.cc
index 36ff93b4e5..831adc1194 100644
--- a/src/benchmarks/eina/city.cc
+++ b/src/benchmarks/eina/city.cc
@@ -27,6 +27,8 @@
27// possible hash functions, by using SIMD instructions, or by 27// possible hash functions, by using SIMD instructions, or by
28// compromising on hash quality. 28// compromising on hash quality.
29 29
30#pragma GCC visibility push(default)
31
30#include "city.h" 32#include "city.h"
31 33
32#include <algorithm> 34#include <algorithm>
@@ -305,3 +307,5 @@ uint128 CityHash128(const char *s, size_t len) {
305 return CityHash128WithSeed(s, len, uint128(k0, k1)); 307 return CityHash128WithSeed(s, len, uint128(k0, k1));
306 } 308 }
307} 309}
310
311#pragma GCC visibility pop