Porting GTA V to Linux with an LLM: build system and a compiler bug
The author describes a personal project to make a native Linux port of GTA V with an LLM, using a basic Codex chat window with Sol 6.1 and no extra skills or MCPs. The game came out in 2013 for PlayStation 3 and Xbox 360, the PC version followed in 2015, and its C++ code leaked in 2023, which made the project feasible. The PC version is built for Windows and uses Direct3D for rendering.
The agent replaced the Visual Studio 2012 build with CMake[1] and Ninja[2], and the author says this took about 10 minutes. Next, the author upgraded the build to the 2026 MSVC[3] compiler, which then produced a bug where the character animation reset about once per second.
The cause was a compiler bug: MSVC 19.51.36257.0 compared a whole packed word against a value instead of extracting a signed four-bit bit-field[4]. The agent worked around it, and the author notes the bug was fixed in MSVC 19.51.36263.0. The author believes that debugging will be a solved problem for LLMs in the near future. The article breaks off as the author starts on the Clang compiler.
Read the original thesourceofcode.comDiscussion
Sources
-
Anurag's Blog
Reflections on porting GTA 5 to Linux using AI







