anomalyco / anomalyco/opencode

build: --baseline flag builds both regular and baseline x64 targets on macOS

Open
#49,149 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Sep 15, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Problem

On macOS, the flag in the build script is supposed to build only the baseline (non-AVX) x64 target. However, it currently builds both the regular and baseline targets.

This is a problem for non-AVX Intel Macs (Westmere, Xeon X5690) because:

  • The official runtime contains AVX2 instructions and crashes with SIGILL (status 132)
  • The binary from Bun 1.3.14 is not actually a baseline build and also contains AVX2
  • A patched Bun build using is required for these machines

Expected behavior

should select only the baseline target.

Actual behavior

builds both regular and baseline x64 targets, causing the build to fail or produce an incompatible binary on non-AVX machines.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.