From 8d2963c55652c0d9d2fb2d8da8444535e45c3a5c Mon Sep 17 00:00:00 2001 From: salh Date: Sat, 18 Apr 2026 09:16:56 +0300 Subject: [PATCH] docs: clarify reconfigure step after codegen --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e7ec452..43760777 100644 --- a/README.md +++ b/README.md @@ -64,16 +64,29 @@ cd AC6_recomp ## Build -### 1 — Generate the recompiled code (first time, and after updating `default.xex`) +### 1 — Configure ```bash cmake --preset win-amd64-relwithdebinfo +``` + +### 2 — Generate the recompiled code (first time, and after updating `default.xex`) + +```bash cmake --build --preset win-amd64-relwithdebinfo --target ac6recomp_codegen ``` This step reads `assets/default.xex`, lifts all PowerPC instructions to C++, and writes the output to `generated/`. It can take a few minutes. -### 2 — Build the runtime +### 3 — Re-run CMake configure + +```bash +cmake --preset win-amd64-relwithdebinfo +``` + +Re-run configure after codegen so CMake picks up the generated `generated/sources.cmake` file and adds the generated `.cpp` sources to the target. + +### 4 — Build the runtime ```bash cmake --build --preset win-amd64-relwithdebinfo @@ -118,6 +131,7 @@ Substitute `win-amd64-relwithdebinfo` with `linux-amd64-relwithdebinfo` in every ```bash cmake --preset linux-amd64-relwithdebinfo cmake --build --preset linux-amd64-relwithdebinfo --target ac6recomp_codegen +cmake --preset linux-amd64-relwithdebinfo cmake --build --preset linux-amd64-relwithdebinfo ./out/build/linux-amd64-relwithdebinfo/ac6recomp assets ```