fix: baseline CPU detection (#13371)

This commit is contained in:
Luke Parker
2026-02-13 07:50:43 +10:00
committed by GitHub
parent a8f2884521
commit 4018c863e3
6 changed files with 127 additions and 22 deletions

View File

@@ -8,6 +8,8 @@ const sidecarConfig = getCurrentSidecar(RUST_TARGET)
const binaryPath = windowsify(`../opencode/dist/${sidecarConfig.ocBinary}/bin/opencode`)
await $`cd ../opencode && bun run build --single`
await (sidecarConfig.ocBinary.includes("-baseline")
? $`cd ../opencode && bun run build --single --baseline`
: $`cd ../opencode && bun run build --single`)
await copyBinaryToSidecarFolder(binaryPath, RUST_TARGET)