summaryrefslogtreecommitdiffhomepage
path: root/auto/clang
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2018-06-20 19:34:06 +0300
committerSergey Kandaurov <pluknet@nginx.com>2018-06-20 19:34:06 +0300
commit14bc4013941d38740d10681e7d54711f95cb38c4 (patch)
tree43713a1548b6b3419f7a1e918067532d6abd9184 /auto/clang
parent50d458796180367b9e2e65884abd538f31b774de (diff)
downloadunit-14bc4013941d38740d10681e7d54711f95cb38c4.tar.gz
unit-14bc4013941d38740d10681e7d54711f95cb38c4.tar.bz2
Using own popcount where the compiler builtin is not available.
Diffstat (limited to 'auto/clang')
-rw-r--r--auto/clang13
1 files changed, 13 insertions, 0 deletions
diff --git a/auto/clang b/auto/clang
index e5a96db8..8639457a 100644
--- a/auto/clang
+++ b/auto/clang
@@ -101,6 +101,19 @@ nxt_feature_test="int main() {
. auto/feature
+nxt_feature="GCC __builtin_popcount()"
+nxt_feature_name=NXT_HAVE_BUILTIN_POPCOUNT
+nxt_feature_run=
+nxt_feature_incs=
+nxt_feature_libs=
+nxt_feature_test="int main() {
+ if (__builtin_popcount(5) == 2)
+ return 0;
+ return 1;
+ }"
+. auto/feature
+
+
nxt_feature="GCC __attribute__ visibility"
nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_VISIBILITY
nxt_feature_run=