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
This commit is contained in:
Lauro Moura 2018-12-17 13:26:47 +00:00 committed by Marcel Hollerbach
parent 3f17b4f054
commit 95069a3038
2 changed files with 5 additions and 0 deletions

View 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']

View 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