From 98732d4ffab080472a5a331c3a1279c2ea90d886 Mon Sep 17 00:00:00 2001 From: RayPals Date: Mon, 1 Jun 2026 00:50:55 +0200 Subject: [PATCH] Add build.ps1 from Claro v1.17.26 zip --- build.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 build.ps1 diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 0000000..6c754cb --- /dev/null +++ b/build.ps1 @@ -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