clank-together/toolchain/msvc-v142/cl-wine.sh
clank-bot 022e0a2c78 Ragnarok rodecomp deployment on memento
Changes to upstream:
- git.js: coordinator commit identity from TD_GIT_AUTHOR_NAME/EMAIL.
- build.js: docker runner can share job dirs through a named volume
  (jobVolume/jobVolumeRoot) for containerized workers.
- install.js: staged installer output with logs, start prompt for regions.
- web: feed layout, cache-busting asset versions, multi-agent help section.
- build-td: fetch checksummed Windows runtime when building on non-Windows.

Additions:
- deploy/rodecomp: compose stack, Dockerfiles, Caddyfile, server.json,
  bulk import/verify scripts, and README.md with the deployment notes
  (the root README stays identical to upstream).
- toolchain/msvc-v142: MSVC v142 under Wine (Docker), SDK 10.0.19041.0.
- tools/rodecomp: project preparation, Forgejo provisioning, history and
  identity tools.
2026-10-25 14:40:13 +01:00

16 lines
594 B
Bash

#!/usr/bin/python3
"""Invoke MSVC under Wine, translating POSIX inputs and isolating service pipes."""
import os
import subprocess
import sys
import tempfile
args = []
for arg in sys.argv[1:]:
if arg.startswith('/') and os.path.isfile(arg):
arg = 'Z:' + arg.replace('/', '\\')
args.append(arg)
with tempfile.TemporaryFile() as output:
result = subprocess.run(['wine', '/opt/toolchain/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x86/cl.exe', *args], stdout=output, stderr=subprocess.STDOUT)
output.seek(0)
sys.stdout.buffer.write(output.read())
sys.exit(result.returncode)