Trying to fix some build errors with regression tests, but this is failing
This commit is contained in:
@@ -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 --------------------------------------------------------------
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 --------------------------------------------------------------
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user