build: lock x86_64 relay to AVX2
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
- Thinking: default to low for reasoning-capable models when no /think or config default is set.
|
- Thinking: default to low for reasoning-capable models when no /think or config default is set.
|
||||||
- Logging: decouple file log levels from console verbosity; verbose-only details are captured when `logging.level` is debug/trace.
|
- Logging: decouple file log levels from console verbosity; verbose-only details are captured when `logging.level` is debug/trace.
|
||||||
- Build: fix regex literal in tool-meta path detection (watch build error).
|
- Build: fix regex literal in tool-meta path detection (watch build error).
|
||||||
|
- Build: require AVX2 Bun for x86_64 relay packaging (reject baseline builds).
|
||||||
- Auto-reply: add run-level telemetry + typing TTL guardrails to diagnose stuck replies.
|
- Auto-reply: add run-level telemetry + typing TTL guardrails to diagnose stuck replies.
|
||||||
|
|
||||||
### Docs
|
### Docs
|
||||||
|
|||||||
@@ -115,7 +115,15 @@ build_relay_binary() {
|
|||||||
echo "ERROR: Rosetta is required to build the x86_64 relay. Install Rosetta and retry." >&2
|
echo "ERROR: Rosetta is required to build the x86_64 relay. Install Rosetta and retry." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
local bun_x86="${BUN_X86_64_BIN:-$HOME/.bun-x64/bin/bun}"
|
local bun_x86="${BUN_X86_64_BIN:-$HOME/.bun-x64/bun-darwin-x64/bun}"
|
||||||
|
if [[ ! -x "$bun_x86" ]]; then
|
||||||
|
bun_x86="$HOME/.bun-x64/bin/bun"
|
||||||
|
fi
|
||||||
|
if [[ "$bun_x86" == *baseline* ]]; then
|
||||||
|
echo "ERROR: x86_64 relay builds are locked to AVX2; baseline Bun is not allowed." >&2
|
||||||
|
echo "Set BUN_X86_64_BIN to a non-baseline Bun (bun-darwin-x64)." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
if [[ -x "$bun_x86" ]]; then
|
if [[ -x "$bun_x86" ]]; then
|
||||||
cmd=("$bun_x86" build "$ROOT_DIR/dist/macos/relay.js" --compile --bytecode --outfile "$out" -e electron --define "$define_arg")
|
cmd=("$bun_x86" build "$ROOT_DIR/dist/macos/relay.js" --compile --bytecode --outfile "$out" -e electron --define "$define_arg")
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user