From a61067efc4031106d97dd2b9abf2166f496760e2 Mon Sep 17 00:00:00 2001 From: Zachary Dremann Date: Sun, 4 Feb 2024 22:32:14 -0500 Subject: [PATCH] Fix bindgen not finding anything See [bindgen issue][1], tl;dr, they deactivated unicode case insensitivity for regexes, which makes us do this slightly strange version [1]: https://github.com/rust-lang/rust-bindgen/issues/2760 --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 549f7d8..434616a 100644 --- a/Makefile +++ b/Makefile @@ -28,9 +28,8 @@ download_croaring: bindgen: cd '$(croaring_source)' && \ bindgen --generate-inline-functions \ - --allowlist-function 'roaring.*|bitset.*' \ - --allowlist-type 'roaring.*|bitset.*' \ - --allowlist-var '(?i:roaring|bitset).*' \ + --allowlist-item '(?i-u:roaring|bitset).*' \ + --allowlist-var '(?i-u:roaring|bitset).*' \ --no-layout-tests \ -o bindgen_bundled_version.rs \ roaring.h