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

@@ -155,6 +155,12 @@ for %%d in (lib\hal lib\app) do (
set "BUILD_FLAGS=!BUILD_FLAGS! -I%SCRIPT_DIR%\%%d"
)
)
:: Auto-discover driver libraries (added by: anvil add <driver>)
if exist "%SCRIPT_DIR%\lib\drivers" (
for /d %%d in ("%SCRIPT_DIR%\lib\drivers\*") do (
set "BUILD_FLAGS=!BUILD_FLAGS! -I%%d"
)
)
set "BUILD_FLAGS=!BUILD_FLAGS! -Werror"
:: -- Compile --------------------------------------------------------------

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

View File

@@ -204,6 +204,12 @@ for %%d in (lib\hal lib\app) do (
set "BUILD_FLAGS=!BUILD_FLAGS! -I%SCRIPT_DIR%\%%d"
)
)
:: Auto-discover driver libraries (added by: anvil add <driver>)
if exist "%SCRIPT_DIR%\lib\drivers" (
for /d %%d in ("%SCRIPT_DIR%\lib\drivers\*") do (
set "BUILD_FLAGS=!BUILD_FLAGS! -I%%d"
)
)
set "BUILD_FLAGS=!BUILD_FLAGS! -Werror"
:: -- Compile --------------------------------------------------------------

View File

@@ -227,6 +227,14 @@ for dir in $INCLUDE_DIRS; do
BUILD_FLAGS="$BUILD_FLAGS -I$abs"
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