sonar

Scan files at memory bandwidth speed.
Log | Files | Refs

commit 91d48e5ecf812c99605f6667ee983a4b5a1edd5c
parent 2f6bf9010e22a6ebf403a2e9e0d30ce9064326b9
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Wed, 16 Sep 2026 21:18:32 -0400

build: add build script with debug, release, test, and check targets

One place for the compiler flags so nobody has to remember -vet and
-strict-style, and so the debug target always carries -debug for backtraces.

Diffstat:
Abuild.cmd | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/build.cmd b/build.cmd @@ -0,0 +1,24 @@ +@echo off +setlocal +set "MODE=%~1" +if "%MODE%"=="" set "MODE=debug" + +if /i "%MODE%"=="debug" ( + odin build . -debug -vet -strict-style -out:sonar.exe + exit /b %errorlevel% +) +if /i "%MODE%"=="release" ( + odin build . -o:speed -vet -strict-style -out:sonar.exe + exit /b %errorlevel% +) +if /i "%MODE%"=="test" ( + odin test ntfs -vet -strict-style + exit /b %errorlevel% +) +if /i "%MODE%"=="check" ( + odin check . -vet -strict-style + exit /b %errorlevel% +) + +echo usage: build [debug^|release^|test^|check] +exit /b 1