mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
17 lines
528 B
PowerShell
17 lines
528 B
PowerShell
$ErrorActionPreference = 'Stop' # Setting strict mode, similar to 'set -euo pipefail' in bash
|
|
. (Join-Path $PSScriptRoot "env.ps1")
|
|
|
|
Push-Location (Join-Path $BUN_DEPS_DIR 'libarchive')
|
|
try {
|
|
Set-Location (mkdir -Force build)
|
|
|
|
Run cmake @CMAKE_FLAGS -DBUILD_SHARED_LIBS=OFF -DENABLE_TEST=OFF -DENABLE_INSTALL=OFF -DENABLE_WERROR=0 ..
|
|
Run cmake --build . --clean-first --config Release
|
|
|
|
Copy-Item libarchive\archive_static.lib $BUN_DEPS_OUT_DIR\archive.lib
|
|
Write-Host "-> libarchive.lib"
|
|
}
|
|
finally {
|
|
Pop-Location
|
|
}
|