- Batch script had issues reading from cargo toml file - Issues were revealed in cargo test (awesome!) - build.bat is now a wrapper for build.ps1
17 lines
621 B
Batchfile
17 lines
621 B
Batchfile
@echo off
|
|
:: build.bat -- Thin wrapper that invokes build.ps1
|
|
::
|
|
:: Students can type "build" at a command prompt or double-click this file.
|
|
:: All logic lives in build.ps1. Requires PowerShell 5.1+ (ships with
|
|
:: Windows 10/11).
|
|
::
|
|
:: Settings are read from .anvil.toml. No Anvil binary required.
|
|
::
|
|
:: Usage:
|
|
:: build.bat Compile (verify only)
|
|
:: build.bat --board mega Use a named board
|
|
:: build.bat --clean Delete build cache first
|
|
:: build.bat --verbose Show full compiler output
|
|
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0build.ps1" %*
|
|
exit /b %ERRORLEVEL% |