Document temporary file location

This commit is contained in:
Andrea Mazzoleni 2026-09-14 18:31:18 +02:00
parent 7bc302678e
commit 8a687d5f54

View file

@ -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