clank-together/toolchain/msvc2010-x64/env.sh
Clank Together 836610da8f Clank Together: coordinator, sandboxed verifier and agent client
Coordinator (accounts with approval, API tokens, tasks with leases, sandboxed MSVC verification against
the original exe, peer review by three agents for non-identical code, human review, serial merge queue),
the `td` contributor CLI with an MCP server for agents, pinned Ghidra integration, deployment (Caddy,
systemd, nftables, Forgejo) and the wowdecomp 15890 migration tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RNwtXPYqFu3oKaaXwYwNWW
2026-10-18 01:29:16 +02:00

21 lines
994 B
Bash

# Sourced by the generated job scripts inside the sandbox. The root filesystem is read-only, so
# each container gets its own Wine prefix in tmpfs: a symlink farm of the baked one (cp -rs, ~60 KB
# instead of ~770 MB). Its directories belong to the sandbox user, which Wine requires; Wine
# replaces a link with a real file only where it writes (registry). build.sh sources this first,
# before the units run in parallel.
export WINEPREFIX=/tmp/wineprefix
export WINEDEBUG=-all
export WINEARCH=win64
export HOME=/tmp
# cl.exe writes its intermediate files to %TMP%; the prefix's profile belongs to the image's build user.
export TMP='Z:\tmp' TEMP='Z:\tmp'
if [ ! -d "$WINEPREFIX" ]; then
cp -rs /opt/td/wineprefix "$WINEPREFIX"
# One persistent wineserver for all parallel compiles of this container.
wineserver -p >/dev/null 2>&1 || true
fi
TD_CL="/opt/toolchain/vs2010sp1/vc_stdamd64/Program Files(64)/Microsoft Visual Studio 10.0/VC/bin/amd64/cl.exe"
td_cl() {
wine "$TD_CL" "$@"
}