Files
anvil/templates/basic/build.bat
Eric Ratliff 7e8d7ecce5
Some checks failed
CI / Test (Linux) (push) Has been cancelled
CI / Test (Windows MSVC) (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled
Switched to build.ps1
- 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
2026-02-23 07:54:27 -06:00

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%