From ca2b1cbf23294cafe06c870b1ac676e2afd2576d Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Sun, 16 Feb 2025 14:53:29 +0000 Subject: [PATCH] Reformat --- build.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build.ps1 b/build.ps1 index 35b03d5..51c7632 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,5 +1,5 @@ Param( - [switch]$Release + [switch]$Release ) $Compiler = "cl.exe" @@ -14,11 +14,11 @@ $TestIncludeDirs = Get-ChildItem -Path tests -Recurse -Directory -ErrorAction Si $TestSrcFiles = Get-ChildItem -Path tests -Recurse -Filter *.c -ErrorAction SilentlyContinue -Force | %{$('"' + $_.FullName + '"')} If ($Release -eq $True) { - $GeneralFlags += " /O2 /Og" - $BuildType = "release" + $GeneralFlags += " /O2 /Og" + $BuildType = "release" } Else { - $GeneralFlags += " /Zi /Od /fsanitize=address" - $BuildType = "debug" + $GeneralFlags += " /Zi /Od /fsanitize=address" + $BuildType = "debug" } $BuildDir = "./libwapp-build/windows-$BuildType" @@ -34,7 +34,7 @@ $TestOutBasename = "wapptest" $TestOutputs = "/Fo:$TestsDir/ /Fe:$TestsDir/$TestOutBasename" If (Test-Path $BuildDir) { - Remove-Item $BuildDir -Recurse -Force + Remove-Item $BuildDir -Recurse -Force } mkdir -p $ObjDir > $null @@ -50,8 +50,8 @@ $Status = $LASTEXITCODE Remove-Item $TestsDir -Recurse -Force If ($Status -ne 0) { - Write-Error "Tests failed" - Exit 1 + Write-Error "Tests failed" + Exit 1 } # Build library