param( [string]$Configuration = "Release" ) $ErrorActionPreference = "Stop" $repoRoot = Resolve-Path (Join-Path $PSScriptRoot "..") $sourceDir = Join-Path $repoRoot "tools\asitus_probe" $buildDir = Join-Path $repoRoot "third_party\asitus_probe_tools_build" cmake -S $sourceDir -B $buildDir -A x64 cmake --build $buildDir --config $Configuration $exePath = Join-Path $buildDir "$Configuration\recognize_holes.exe" if (-not (Test-Path $exePath)) { throw "Analysis Situs probe build finished but recognize_holes.exe was not found: $exePath" } Write-Host "Analysis Situs probe built: $exePath"