From 51e264ddf2dedc5b6e6d64748bff28f4fb3b5da5 Mon Sep 17 00:00:00 2001 From: Agoston Szepessy <agoston.the.dev@gmail.com> Date: Sun, 21 Jul 2024 14:06:35 +0200 Subject: [PATCH] Exclude dirs with no cbindgen.toml Fixes the panic that occurs on builds. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 62d574a5f..883de4fc5 100644 --- a/Makefile +++ b/Makefile @@ -63,12 +63,14 @@ all: | headers libs headers: $(HEADERS_DEPS) for header in $(HEADERS_UNPARSED); do \ + if test -f "src/header/$$header/cbindgen.toml"; then \ out=`echo "$$header" | sed 's/_/\//g'`; \ out="$(TARGET_HEADERS)/$$out.h"; \ cbindgen --output "$$out" \ --config="src/header/$$header/cbindgen.toml" \ "src/header/$$header/mod.rs"; \ sed -i "s/va_list __valist/.../g" "$$out"; \ + fi \ done clean: -- GitLab