Add MAC CGO option.

This commit is contained in:
KingKDot
2026-07-15 23:26:41 -05:00
parent 9954d813c2
commit 5136a63e69
9 changed files with 403 additions and 7 deletions
+2 -2
View File
@@ -129,8 +129,7 @@ WORKDIR /app
# openssl/ca-certificates: TLS cert generation + HTTPS validation.
# wget/tar/unzip/xz-utils: required by toolchain-manager for on-demand downloads.
# ffmpeg: server-side remote desktop recording encoder.
# clang: fallback C compiler for darwin/CGO agent builds (no toolchain mapping in
# toolchain-manager.ts, so build-process.ts falls back to the default `cc`).
# clang/lld: Darwin CGO cross-compiler/linker used with a user-uploaded macOS SDK.
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && apt-get install -y --no-install-recommends \
@@ -143,6 +142,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
git \
ffmpeg \
clang \
lld \
&& rm -rf /var/lib/apt/lists/*
# Reuse Go + garble from the builder so we don't re-download.