Run Half-Life 2 natively on Apple Silicon using Claude Code
Used Claude Code (Opus 5.5) to write static re-compilation code, translating Linux x86 code into C and compiling it for ARM64. Successfully got Half-Life 2 and its expansions running natively on Mac and iPhone in under two days.
Reddit r/ClaudeAI/u/kanapitsas
Claude Code (Opus 5.5)XcodeSteam
Added 2026-11-11 · originally published 2026-11-10
Steps
- 1Preparation: Ensure you own the game copyright on Steam, download the Linux binaries, and install Xcode command-line tools.
- 2Have Claude Code add game-specific configuration profiles, SSSE3 instructions, missing Linux imports, and the Steam SDK bridge.
- 3Handle graphics rendering: Fix macOS OpenGL sampler object issues and use Portal 2's Direct3D 9 bridge to run the game on Metal.
- 4Optimize performance and adapt: Achieve default Metal usage on the second day and build an iOS version with touch controls.
- 5Use the installer app: Automatically find Steam games and build them on the Mac (about 10-20 minutes per game).
Copy-ready prompt
Please help me statically recompile the following [Linux x86 game/app code], translating it into C language code so it can be compiled for [ARM64 architecture platform]. The first step requires: [adding game-specific configuration profiles, supplementing missing instruction sets and dependency imports].
#AI Agent#Claude Code#Game Porting#Apple Silicon
Related use cases
Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.