From 8a687d5f54c552bc9083c18bdd99861f58481192 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 14 Sep 2026 18:31:18 +0200 Subject: [PATCH] Document temporary file location --- AGENTS.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 4f5c8204..2bccb150 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -82,9 +82,10 @@ SnapRAID is designed to recover from an interruption, including `SIGKILL`, at an - `linux.cfg`: Code formatting rules for `raid/` directory and its subdirectories - Run `make doc` to regenerate all manual pages (`*.1`) and text manuals (`*.txt`) - Always use parallel compilation with `make -j$(nproc)` instead of plain `make` -- To cross-compile for Windows x64: build out-of-tree in `/tmp` so the Linux configuration is preserved: - `mkdir -p /tmp/snapraid-windows && (cd /tmp/snapraid-windows && /path/to/configure.windows-x64 && make -j$(nproc))` - Subsequent Windows rebuilds only require: `(cd /tmp/snapraid-windows && make -j$(nproc))` +- Create temporary files and directories under `/tmp/snapraid/`. +- To cross-compile for Windows x64: build out-of-tree in `/tmp/snapraid/` so the Linux configuration is preserved: + `mkdir -p /tmp/snapraid/windows && (cd /tmp/snapraid/windows && /path/to/configure.windows-x64 && make -j$(nproc))` + Subsequent Windows rebuilds only require: `(cd /tmp/snapraid/windows && make -j$(nproc))` - The Windows build needs to be tested only when modifying Windows-specific code (e.g., `os/mingw.*`, `cmdline/mingwapp.c`, or Windows-specific `#ifdef` paths) ## Code Style Guidelines