mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
* Updated Dependencies Script * demo * fix submodule hell!!! * lol * attmept 2 * install nasm in ci * setup sh 1 * yeah * better zlib building * codegen stuff * attempt 2 at bun codegen ci * o * deps improvements * generaet part of compile-cpp-only.ps1 * restore these * good enough for Unix * remove libuv submodule lol * pass over docs
13 lines
480 B
PowerShell
13 lines
480 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 'zstd')
|
|
try {
|
|
Remove-Item CMakeCache.txt -ErrorAction SilentlyContinue
|
|
|
|
Run cmake -S "build/cmake" @CMAKE_FLAGS -DZSTD_BUILD_STATIC=ON
|
|
Run cmake --build . --clean-first --config Release
|
|
|
|
Copy-Item lib/zstd_static.lib $BUN_DEPS_OUT_DIR/zstd.lib
|
|
Write-Host "-> zstd.lib"
|
|
} finally { Pop-Location } |