mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
@@ -30,8 +30,8 @@
|
||||
"ci": "bun scripts/buildkite-failures.ts ",
|
||||
"watch": "bun run zig build check --watch -fincremental --prominent-compile-errors --global-cache-dir build/debug/zig-check-cache --zig-lib-dir vendor/zig/lib -freference-trace=30",
|
||||
"watch-windows": "bun run zig build check-windows --watch -fincremental --prominent-compile-errors --global-cache-dir build/debug/zig-check-cache --zig-lib-dir vendor/zig/lib",
|
||||
"bd:v": "(bun run --silent build:debug &> /tmp/bun.debug.build.log || (cat /tmp/bun.debug.build.log && rm -rf /tmp/bun.debug.build.log && exit 1)) && rm -f /tmp/bun.debug.build.log && ./build/debug/bun-debug",
|
||||
"bd": "BUN_DEBUG_QUIET_LOGS=1 bun --silent bd:v",
|
||||
"bd:v": "./scripts/bd",
|
||||
"bd": "BUN_DEBUG_QUIET_LOGS=1 ./scripts/bd",
|
||||
"build:debug": "export COMSPEC=\"C:\\Windows\\System32\\cmd.exe\" && bun ./scripts/build.mjs -GNinja -DCMAKE_BUILD_TYPE=Debug -B build/debug --log-level=NOTICE",
|
||||
"build:debug:fuzzilli": "export COMSPEC=\"C:\\Windows\\System32\\cmd.exe\" && bun ./scripts/build.mjs -GNinja -DCMAKE_BUILD_TYPE=Debug -B build/debug-fuzz -DENABLE_FUZZILLI=ON --log-level=NOTICE",
|
||||
"build:debug:noasan": "export COMSPEC=\"C:\\Windows\\System32\\cmd.exe\" && bun ./scripts/build.mjs -GNinja -DCMAKE_BUILD_TYPE=Debug -DENABLE_ASAN=OFF -B build/debug --log-level=NOTICE",
|
||||
|
||||
13
scripts/bd
Executable file
13
scripts/bd
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
LOG_FILE="${TMPDIR:-/tmp}/bun.debug.build.log.$$"
|
||||
|
||||
if bun run --silent build:debug > "$LOG_FILE" 2>&1; then
|
||||
rm -f "$LOG_FILE"
|
||||
exec ./build/debug/bun-debug "$@"
|
||||
else
|
||||
status=$?
|
||||
cat "$LOG_FILE"
|
||||
rm -f "$LOG_FILE"
|
||||
exit "$status"
|
||||
fi
|
||||
2
scripts/bd.bat
Normal file
2
scripts/bd.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
pwsh -File "%~dp0bd.ps1" %*
|
||||
10
scripts/bd.ps1
Normal file
10
scripts/bd.ps1
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
$buildOutput = & bun run --silent build:debug 2>&1
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Output $buildOutput
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
& ./build/debug/bun-debug @args
|
||||
exit $LASTEXITCODE
|
||||
Reference in New Issue
Block a user