From 3c1a8c3e7f0f5617613905099fd3aa175e415f73 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Tue, 18 Aug 2026 10:21:50 +0200 Subject: [PATCH] Update AGENTS.md --- AGENTS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 72674e63..0a55547a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -80,6 +80,10 @@ SnapRAID is designed to recover from an interruption, including `SIGKILL`, at an - `uncrustify.cfg`: Code formatting rules for main application source files - `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: run `make clean && ./configure.windows-x64 && make -j$(nproc)` +- After configuring for Windows (`./configure.windows-x64`), it is not necessary to reconfigure back for Linux; you can leave it configured for Windows +- Always run `make clean` when switching build configurations or targets between Linux (`./configure`) and Windows (`./configure.windows-x64`) ## Code Style Guidelines