Trying to fix some build errors with regression tests, but this is failing

This commit is contained in:
Eric Ratliff
2026-02-22 19:10:40 -06:00
parent d5220bea03
commit 6a0b3af330
7 changed files with 717 additions and 1 deletions

View File

@@ -149,6 +149,14 @@ for dir in $INCLUDE_DIRS; do
warn "Include directory not found: $dir"
fi
done
# Auto-discover driver libraries (added by: anvil add <driver>)
if [[ -d "$SCRIPT_DIR/lib/drivers" ]]; then
for driver_dir in "$SCRIPT_DIR"/lib/drivers/*/; do
if [[ -d "$driver_dir" ]]; then
BUILD_FLAGS="$BUILD_FLAGS -I$driver_dir"
fi
done
fi
for flag in $EXTRA_FLAGS; do
BUILD_FLAGS="$BUILD_FLAGS $flag"
done