mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
12 lines
475 B
PowerShell
Executable File
12 lines
475 B
PowerShell
Executable File
$ErrorActionPreference = 'Stop' # Setting strict mode, similar to 'set -euo pipefail' in bash
|
|
. (Join-Path $PSScriptRoot "env.ps1")
|
|
|
|
Push-Location (Join-Path $BUN_DEPS_DIR 'lol-html/c-api')
|
|
try {
|
|
Run cargo build --release --target x86_64-pc-windows-msvc
|
|
|
|
Copy-Item target/x86_64-pc-windows-msvc/release/lolhtml.lib $BUN_DEPS_OUT_DIR
|
|
Copy-Item target/x86_64-pc-windows-msvc/release/lolhtml.pdb $BUN_DEPS_OUT_DIR
|
|
Write-Host "-> lolhtml.lib"
|
|
} finally { Pop-Location }
|