Add build.ps1 from Claro v1.17.26 zip

This commit is contained in:
RayPals
2026-06-01 00:50:55 +02:00
parent 4eb4015cd5
commit 98732d4ffa
+12
View File
@@ -0,0 +1,12 @@
param(
[string]$CC = "gcc",
[string]$Out = "claro.exe"
)
Write-Host "Building Claro v1.17.26..." -ForegroundColor Cyan
& $CC "-std=c99" "src\claro.c" "-O0" "-o" $Out "-lm"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
Write-Host "Built: $Out" -ForegroundColor Green
Write-Host "Run tests with: .\$Out test" -ForegroundColor Green
Write-Host "Try a lesson with: .\$Out lessons\01_hello.claro" -ForegroundColor Green